Confusion on how to use hatch run
#166
Answered
by
ofek
facelessuser
asked this question in
Q&A
-
I cannot seem to figure out how to use ➜ Rummage git:(chore/hatch) ✗ hatch run
Usage: hatch [OPTIONS] COMMAND [ARGS]...
Try 'hatch -h' for help.
Error: No such command 'run'. I'm trying to configure some script commands, but I am baffled on how I am to execute them: [tool.hatch.envs.locale]
dependencies = [
"babel"
]
[tool.hatch.envs.locale.scripts]
extract = "pybabel extract --input-dirs=rummage --output-file=rummage/lib/gui/localization/locale/rummage.pot"
init = "pybabel init --domain=rummage --input-file=rummage/lib/gui/localization/locale/rummage.pot --output-dir=rummage/lib/gui/localization/locale"
update = "pybabel update --domain=rummage --input-file=rummage/lib/gui/localization/locale/rummage.pot --output-dir=rummage/lib/gui/localization/locale"
compile = "pybabel compile --domain=rummage --directory=rummage/lib/gui/localization/locale" |
Beta Was this translation helpful? Give feedback.
Answered by
ofek
Mar 20, 2022
Replies: 1 comment 17 replies
-
The Hatch CLI rewrite is still in beta so you'll need to do |
Beta Was this translation helpful? Give feedback.
17 replies
Answer selected by
ofek
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The Hatch CLI rewrite is still in beta so you'll need to do
pip install -U --pre hatch
. https://ofek.dev/hatch/latest/install/