-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
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
AttributeError: 'Command' object has no attribute 'commands' #40
Comments
click-repl only works if you have a command |
Same as the other guy's issue. I don't want `$ thing repl`, I want `$ thing` to always drop to the REPL immediately. I think maybe click-repl is not the right library for me.
… On May 9, 2018, at 11:03 AM, Markus Unterwaditzer ***@***.***> wrote:
click-repl only works if you have a command Group: What is the point of using it if there are no commands to execute on the shell?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#40 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AZ7bltOJPYn9sh_GdOT5oXdzpMVLoMz9ks5twy-KgaJpZM4T3rtx>.
|
That is not what I am talking about. I mean that if you have only one command, what would the repl allow you to do? For my usecase I have a command like this:
You on the other hand seem to have no subcommands, because you have no group. What exactly would the user type in the REPL? |
There were other commands not included in the example, sorry. I think I'm misunderstanding how to achieve the goal of having the program drop straight into the REPL without requiring a |
yes,
|
Thank you :)
… On May 9, 2018, at 11:39 AM, Markus Unterwaditzer ***@***.***> wrote:
yes, invoke_without_command, and in the group body:
if not click_ctx.invoked_subcommand: repl(...)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#40 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AZ7blrb9dwBURLkdGQG-bHRlkTdTsylgks5twzfxgaJpZM4T3rtx>.
|
yw |
In a function called from a setup tools entry point:
I get this error:
If I do this:
I get a different error, because
pop
is called incorrectly.Commenting out lines 171-180 fixes the error.
available_commands
isn't used anywhere else, so this seems to be dead code?The text was updated successfully, but these errors were encountered: