Closed suntong closed 3 years ago
Use Aliases
as following
Command{
Name: "remove",
Aliases: []string{"rm"},
Fn: doSomething,
}
Thanks @mkideal
Commands:
help display help information
child this is a child command(aliases cd,cld)
There is better a space before the "(
". OK I send in PR for it?
OK.
suntong notifications@github.com 於 2021年2月15日 07:38 寫道:
Thanks @mkideal
Commands:
help display help information child this is a child command(aliases cd,cld) There is better a space before the "(". OK I send in PR for it?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
Thanks. Done.
Is there a way to register/provide shorter alias names to command, like
npm i
stands fornpm install
?