cli lint removal

This commit is contained in:
Michael Quigley 2023-06-20 09:58:41 -04:00
parent ebfb039687
commit 3c0477f9e3
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
4 changed files with 9 additions and 14 deletions

View File

@ -22,8 +22,6 @@ import (
"time" "time"
) )
var accessPrivateCmd *accessPrivateCommand
func init() { func init() {
accessCmd.AddCommand(newAccessPrivateCommand().cmd) accessCmd.AddCommand(newAccessPrivateCommand().cmd)
} }

View File

@ -22,10 +22,9 @@ type accessPublicCommand struct {
func newAccessPublicCommand() *accessPublicCommand { func newAccessPublicCommand() *accessPublicCommand {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "public [<configPath>]", Use: "public [<configPath>]",
Aliases: []string{"fe"}, Short: "Create a public access HTTP frontend",
Short: "Create a public access HTTP frontend", Args: cobra.RangeArgs(0, 1),
Args: cobra.RangeArgs(0, 1),
} }
command := &accessPublicCommand{cmd: cmd} command := &accessPublicCommand{cmd: cmd}
cmd.Run = command.run cmd.Run = command.run

View File

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

View File

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