For example, I just need to edit the config file like the following:
clean:
rpc:
rm -rf ./rpc
api
rm -rf ./api
run:
> make clean rpc
However, make don't support nested subcommands.
A good choice is https://github.com/spf13/cobra, which supports subcommands and command alias... But it is used in golang, not shell.
I wonder do we havecobra in shell?
I wonder do we have cobra in shell?I found 1,
This is the link: https://taskfile.dev/#/
Below is the example:
Taskfile.ymlTo view available commands:
task --listTo exec command:
task clean:apiortask clean:rpc