hatch
hatch copied to clipboard
Feature request: allow elision of environment name when running the CLI inside an environment
For example, after running
hatch shell lint
it should be possible to run the style
script via
hatch run style
instead of using
hatch run lint:style
Not sure I completely understand the feature request but I was just looking for a way to use hatch shell
to enter a shell other then the default shell. It seems no matter what I type after hatch shell
is ignored. I can for instance type hatch shell this_is_not_an_env
and it just enters the default environment. Am am running hatch version 1.7.0.
This feature request seems to state that this should already be possible by now and additionally also the defined shortcuts like style
should be available in the entered shell. This also makes sense but is confusing as not even entering a non-default shell seems to work right now, or is it only my local setup?
Top level --env
/-e
flag https://hatch.pypa.io/latest/cli/reference/