hatch icon indicating copy to clipboard operation
hatch copied to clipboard

scripts list

Open andgineer opened this issue 2 years ago • 2 comments

hatch should show list of scripts with their descriptions.

Without that we have to describe the scripts in some other place like readme and list the scripts there.

So we need some way to add description to the script and show it in --help or special hatch command. May be like optional inline table:

[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
cov = {description = "coverage" command = "coverage"}

andgineer avatar Nov 07 '23 16:11 andgineer

https://github.com/pypa/hatch/issues/995#issuecomment-1763168434

ofek avatar Nov 07 '23 16:11 ofek

Does that suffice?

ofek avatar Nov 13 '23 16:11 ofek