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.Dismiss alert
May be it's already possible but I could not figure out how to bring the app direct into REPL mode just by starting it without an additional command. Also I would prefer if calling $ myapp would not show me the help handler but do the same as $ myapp repl. If both ways could start interactive mode it would be great.
The text was updated successfully, but these errors were encountered:
You can already do it by calling the click_repl.repl() function inside the main group which holds all of your other commands, like this
fromclick_replimportreplimportclick@click.group(invoke_without_command=True)@click.pass_contextdefmain(ctx: click.Context):
ifctx.invoked_subcommand:
repl(ctx)
...
# Rest of your code/commands
This isn't really a satisfactory answer. I don't want the repl to be the entry point of my application, because I want the cli and the repl to be entirely different contexts, with entirely different subcommands and options.
May be it's already possible but I could not figure out how to bring the app direct into REPL mode just by starting it without an additional command. Also I would prefer if calling
$ myapp
would not show me the help handler but do the same as$ myapp repl
. If both ways could start interactive mode it would be great.The text was updated successfully, but these errors were encountered: