Description
The documented skip_confirmation parameter of @run.cli.entrypoint ("If True, skips user confirmation before execution") is stored on the Entrypoint object but never consumed when the CLI command is built. Every non-dryrun invocation still prompts Continue? [y/N] unless the user additionally passes --yes/-y or run.skip_confirmation=True.
Steps to reproduce
# app.py
import nemo_run as run
@run.cli.entrypoint(skip_confirmation=True)
def hello(name: str = "world"):
print(f"hello {name}")
if __name__ == "__main__":
run.cli.main(hello)
$ python app.py name=test
...
Continue? [y/N]:
Expected behavior
With skip_confirmation=True on the entrypoint the command runs without prompting (same as --yes).
Actual behavior
The prompt still appears. Entrypoint.skip_confirmation is dead — _add_executor_command never forwards it to RunContext.cli_command, so the generated command's skip_confirmation option keeps its False default.
Fwiw the repo's own tests work around this: test/cli/test_api.py declares entrypoints with skip_confirmation=True yet passes run.skip_confirmation=True / --yes when invoking them.
Environment
nemo-run main (b85eb67), Python 3.12, macOS
Description
The documented
skip_confirmationparameter of@run.cli.entrypoint("If True, skips user confirmation before execution") is stored on theEntrypointobject but never consumed when the CLI command is built. Every non-dryrun invocation still promptsContinue? [y/N]unless the user additionally passes--yes/-yorrun.skip_confirmation=True.Steps to reproduce
Expected behavior
With
skip_confirmation=Trueon the entrypoint the command runs without prompting (same as--yes).Actual behavior
The prompt still appears.
Entrypoint.skip_confirmationis dead —_add_executor_commandnever forwards it toRunContext.cli_command, so the generated command'sskip_confirmationoption keeps itsFalsedefault.Fwiw the repo's own tests work around this:
test/cli/test_api.pydeclares entrypoints withskip_confirmation=Trueyet passesrun.skip_confirmation=True/--yeswhen invoking them.Environment
nemo-run main (
b85eb67), Python 3.12, macOS