Replies: 1 comment 2 replies
-
Is there a way to get the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
An example inspired by the Click docs:
Note that I wrap
greet(...)
so I have an entrypoint for scripts:In
pyproject.toml
:When testing, I also have to ensure that I use
auto_envvar_prefix
withinvoke
:Its not a big thing but that permits drift between what's happening normally and testing. Am I missing an obvious way of being able to make
auto_envvar_prefix part
of the definition of the command rather than set when the command is invoked? I could subclass Command and use that withclick.command(...)
but it seems less ergonomic than it could be.Beta Was this translation helpful? Give feedback.
All reactions