We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It may be useful to override run.echo parameter if it is set already in a config file/environment variable.
run.echo
Consider tasks.py:
tasks.py
from invoke import task @task def print_echo_param(c): c.run(f"echo '{c.config.run.echo=}'")
Then:
$ inv print-echo-param c.config.run.echo=False $ inv --echo print-echo-param echo 'c.config.run.echo=True' c.config.run.echo=True
If there is export INVOKE_RUN_ECHO=1 then:
export INVOKE_RUN_ECHO=1
$ inv print-echo-param echo 'c.config.run.echo=True' c.config.run.echo=True $ INVOKE_RUN_ECHO=0 inv print-echo-param c.config.run.echo=False
It would be nice to provide --no-echo instead of INVOKE_RUN_ECHO=0 here.
--no-echo
INVOKE_RUN_ECHO=0
The current version doesn't recognize --no-echo parameter:
inv --no-echo print-echo-param No idea what '--no-echo' is!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It may be useful to override
run.echo
parameter if it is set already in a config file/environment variable.Consider
tasks.py
:Then:
If there is
export INVOKE_RUN_ECHO=1
then:It would be nice to provide
--no-echo
instead ofINVOKE_RUN_ECHO=0
here.The current version doesn't recognize
--no-echo
parameter:The text was updated successfully, but these errors were encountered: