task icon indicating copy to clipboard operation
task copied to clipboard

Add new flag 'shell' which outputs shell commands from a task

Open the-kaustubh opened this issue 2 years ago • 2 comments

The PR adds new flag --shell to the task command which works similar to dry run flag. It outputs raw shell command corresponding to the task without executing it.

Commit 22310215 also adds the same functionality to the pre-condition checks.

This PR addresses #701 Linting of commands

the-kaustubh avatar Apr 22 '23 22:04 the-kaustubh

For the purposes of passing to another linter, such as shellcheck, would this need to do some preprocessing of template variables?

q0rban avatar Jun 17 '24 13:06 q0rban

It might be interesting to combine this with #2114 as a trace implementation. For instance:

task default --tracer=audit

where the "audit" prints resolved task variables, envars (send to sh) and the sh commands.

trulede avatar May 11 '25 18:05 trulede