devbox
devbox copied to clipboard
[Feature]: Scripts grouping
trafficstars
Is your feature request related to a problem you're trying to solve? Please describe.
Having a long list of scripts in devbox.json can be difficult when running devbox run. It would be nice to group scripts / define some of them as subcommands/-scripts. I know this might be a bit difficult to implement and would not have a high priority, it's just a idea.
Describe the solution you'd like
Would be nice if devbox run is able to return grouped commands (if defined in devbox.json), for example:
...
"scripts": {
"command0": "echo nothingspecial",
"command1": [
{ "subscript1": "echo subscript" },
{ "subscript2": [ "echo 1", "echo 2" ] }
]
}
...
which could return a output like (or similar to cli build tools/generators like bashly, cobra, ..):
Usage: command [subcommand] [options] [argument(s)]
* command0
* command1:
* command1 subscript1
* command1 subscript2
--help, -h for more help information about a command