You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Make sure users can determine which local shell is used when executing commands.
Was: Only Bash as shell?
I've only had a quick peek at the code, but I think the bash shell is hardcoded in the runner. Would be nice to let the user define the the shell in tasks.py, since some shells don't share the same syntax.
The text was updated successfully, but these errors were encountered:
I've been working up to actual config, my general idea is like so:
Bottom level is a run kwarg, like echo and friends, so it can be overridden per-execute in any use case.
Mid level is a Context object which acts as a config holder & allows one to pass configs around.
This is implemented, though the "edit it at the Python level" angle isn't beautiful - it's just dict attributes on Context objects, and I need to figure out how best to 'merge' CLI level settings (below) with in-task-module settings (what you want).
Top level is CLI options, i.e. inv --shell=/bin/zsh mytask. These require use of contextualized tasks to take effect - again see echo.
Adding a CLI flag is easy, just follow #32 / #27 re: --echo; having a useful task-module-level way of merging stuff might need more thinking.