Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions internal/command/apps/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ the name, owner (org), status, and date/time of latest deploy for each app.
})

cmd.Aliases = []string{"ls"}
cmd.Args = cobra.NoArgs
return cmd
}

Expand Down
1 change: 1 addition & 0 deletions internal/command/auth/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ browser-based authentication.
)

cmd := command.New("login", short, long, runLogin)
cmd.Args = cobra.NoArgs

flag.Add(cmd,
flag.Bool{
Expand Down
1 change: 1 addition & 0 deletions internal/command/auth/token.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ instead, to create narrowly-scoped tokens with a custom expiry.`
)

cmd.Hidden = true
cmd.Args = cobra.NoArgs

return cmd
}
Expand Down
1 change: 1 addition & 0 deletions internal/command/auth/whoami.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ authenticated and in use.

cmd := command.New("whoami", long, short, runWhoAmI,
command.RequireSession)
cmd.Args = cobra.NoArgs
flag.Add(cmd, flag.JSONOutput())
return cmd
}
Expand Down
1 change: 1 addition & 0 deletions internal/command/info/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ func New() *cobra.Command {
cmd := command.New("info", short, long, nil)
cmd.Hidden = true
cmd.Deprecated = "Replaced by 'status', 'ips list', and 'services list'"
cmd.Args = cobra.NoArgs

flag.Add(cmd,
flag.App(),
Expand Down
1 change: 1 addition & 0 deletions internal/command/ips/allocate.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func newAllocatev4() *cobra.Command {
command.RequireSession,
command.RequireAppName,
)
cmd.Args = cobra.NoArgs

flag.Add(cmd,
flag.Bool{
Expand Down
1 change: 1 addition & 0 deletions internal/command/ips/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func newList() *cobra.Command {
)

cmd.Aliases = []string{"ls"}
cmd.Args = cobra.NoArgs

flag.Add(cmd,
flag.App(),
Expand Down
1 change: 1 addition & 0 deletions internal/command/ips/private.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func newPrivate() *cobra.Command {
command.RequireSession,
command.RequireAppName,
)
cmd.Args = cobra.NoArgs

flag.Add(cmd,
flag.App(),
Expand Down
1 change: 1 addition & 0 deletions internal/command/machine/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ func newProxy() *cobra.Command {
)

cmd := command.New(usage, short, long, runMachineProxy, command.RequireSession)
cmd.Args = cobra.NoArgs

flag.Add(cmd,
flag.Org(),
Expand Down
1 change: 1 addition & 0 deletions internal/command/orgs/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func newList() *cobra.Command {

flag.Add(cmd, flag.JSONOutput())
cmd.Aliases = []string{"ls"}
cmd.Args = cobra.NoArgs
return cmd
}

Expand Down
1 change: 1 addition & 0 deletions internal/command/postgres/add_flycast.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func newAddFlycast() *cobra.Command {
)

cmd.Hidden = true
cmd.Args = cobra.NoArgs

return cmd
}
Expand Down
1 change: 1 addition & 0 deletions internal/command/postgres/connect.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func newConnect() *cobra.Command {
command.RequireSession,
command.RequireAppName,
)
cmd.Args = cobra.NoArgs

flag.Add(cmd,
flag.App(),
Expand Down
1 change: 1 addition & 0 deletions internal/command/postgres/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func newCreate() *cobra.Command {
cmd := command.New("create", short, long, run,
command.RequireSession,
)
cmd.Args = cobra.NoArgs

flag.Add(
cmd,
Expand Down
1 change: 1 addition & 0 deletions internal/command/postgres/failover.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ func newFailover() *cobra.Command {
command.RequireSession,
command.RequireAppName,
)
cmd.Args = cobra.NoArgs

flag.Add(
cmd,
Expand Down
1 change: 1 addition & 0 deletions internal/command/postgres/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func newList() *cobra.Command {

flag.Add(cmd, flag.JSONOutput())
cmd.Aliases = []string{"ls"}
cmd.Args = cobra.NoArgs
return cmd
}

Expand Down
1 change: 1 addition & 0 deletions internal/command/postgres/renew_certs.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func newRenewSSHCerts() *cobra.Command {
command.RequireSession,
command.RequireAppName,
)
cmd.Args = cobra.NoArgs

flag.Add(cmd,
flag.App(),
Expand Down
1 change: 1 addition & 0 deletions internal/command/postgres/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ func newRestart() *cobra.Command {
command.RequireSession,
command.RequireAppName,
)
cmd.Args = cobra.NoArgs

flag.Add(cmd,
flag.App(),
Expand Down
1 change: 1 addition & 0 deletions internal/command/services/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func newList() *cobra.Command {

cmd := command.New("list", short, long, runList, command.RequireSession, command.RequireAppName)
cmd.Aliases = []string{"ls"}
cmd.Args = cobra.NoArgs
flag.Add(cmd,
flag.App(),
flag.AppConfig(),
Expand Down
1 change: 1 addition & 0 deletions internal/command/ssh/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func newLog() *cobra.Command {
)

cmd := command.New(usage, short, long, runLog, command.RequireSession)
cmd.Args = cobra.NoArgs

flag.Add(cmd,
flag.JSONOutput(),
Expand Down
1 change: 1 addition & 0 deletions internal/command/tokens/attenuate.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func newAttenuate() *cobra.Command {
)

cmd := command.New(usage, short, long, runAttenuate)
cmd.Args = cobra.NoArgs

flag.Add(cmd,
flag.String{
Expand Down
1 change: 1 addition & 0 deletions internal/command/tokens/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ func newDebug() *cobra.Command {
)

cmd := command.New(usage, short, long, runDebug)
cmd.Args = cobra.NoArgs

flag.Add(cmd,
flag.String{
Expand Down
1 change: 1 addition & 0 deletions internal/command/tokens/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func newList() *cobra.Command {
)

cmd.Aliases = []string{"ls"}
cmd.Args = cobra.NoArgs

return cmd
}
Expand Down
1 change: 1 addition & 0 deletions internal/command/version/save_install.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ func newSaveInstall() *cobra.Command {
)

cmd.Hidden = true
cmd.Args = cobra.NoArgs

return cmd
}
Expand Down
1 change: 1 addition & 0 deletions internal/command/volumes/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func newList() *cobra.Command {
)

cmd.Aliases = []string{"ls"}
cmd.Args = cobra.NoArgs

flag.Add(cmd,
flag.App(),
Expand Down