cli aliases (#129)

This commit is contained in:
Michael Quigley 2022-12-02 12:21:38 -05:00
parent 5ba457313a
commit dc24a0532b
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
2 changed files with 8 additions and 6 deletions

View File

@ -18,9 +18,10 @@ type adminCreateFrontendCommand struct {
func newAdminCreateFrontendCommand() *adminCreateFrontendCommand {
cmd := &cobra.Command{
Use: "frontend <zitiId> <publicName> <urlTemplate>",
Short: "Create a global public frontend",
Args: cobra.ExactArgs(3),
Use: "frontend <zitiId> <publicName> <urlTemplate>",
Aliases: []string{"fe"},
Short: "Create a global public frontend",
Args: cobra.ExactArgs(3),
}
command := &adminCreateFrontendCommand{cmd: cmd}
cmd.Run = command.run

View File

@ -18,9 +18,10 @@ type adminDeleteFrontendCommand struct {
func newAdminDeleteFrontendCommand() *adminDeleteFrontendCommand {
cmd := &cobra.Command{
Use: "frontend <frontendToken>",
Short: "Delete a global public frontend",
Args: cobra.ExactArgs(1),
Use: "frontend <frontendToken>",
Aliases: []string{"fe"},
Short: "Delete a global public frontend",
Args: cobra.ExactArgs(1),
}
command := &adminDeleteFrontendCommand{cmd: cmd}
cmd.Run = command.run