hatch icon indicating copy to clipboard operation
hatch copied to clipboard

Feature request: allow elision of environment name when running the CLI inside an environment

Open gihanmarasingha opened this issue 1 year ago • 2 comments

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

gihanmarasingha avatar Nov 02 '23 15:11 gihanmarasingha

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?

FlorianWilhelm avatar Nov 25 '23 19:11 FlorianWilhelm

Top level --env/-e flag https://hatch.pypa.io/latest/cli/reference/

ofek avatar Nov 25 '23 19:11 ofek