Command alias
suntong opened this issue · 4 comments
suntong commented
Is there a way to register/provide shorter alias names to command, like npm i
stands for npm install
?
mkideal commented
Use Aliases
as following
Command{
Name: "remove",
Aliases: []string{"rm"},
Fn: doSomething,
}
suntong commented
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?
mkideal commented
OK.
… suntong ***@***.***> 於 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.
suntong commented
Thanks. Done.