Skip to content

Commit

Permalink
Change order of flags so they are alphabetized
Browse files Browse the repository at this point in the history
Signed-off-by: João Pereira <joaod@vmware.com>
  • Loading branch information
joaopapereira committed Aug 8, 2024
1 parent 63c394b commit deff01c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion command/v7/rollback_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ type RollbackCommand struct {

Force bool `short:"f" description:"Force rollback without confirmation"`
RequiredArgs flag.AppName `positional-args:"yes"`
MaxInFlight *int `long:"max-in-flight" description:"Defines the maximum number of instances that will be actively being rolled back."`
Strategy flag.DeploymentStrategy `long:"strategy" description:"Deployment strategy can be canary or rolling. When not specified, it defaults to rolling."`
Version flag.Revision `long:"version" required:"true" description:"Roll back to the specified revision"`
relatedCommands interface{} `related_commands:"revisions"`
usage interface{} `usage:"CF_NAME rollback APP_NAME [--version VERSION] [-f]"`
MaxInFlight *int `long:"max-in-flight" description:"Defines the maximum number of instances that will be actively being rolled back."`

LogCacheClient sharedaction.LogCacheClient
Stager shared.AppStager
Expand Down
4 changes: 2 additions & 2 deletions integration/v7/isolated/rollback_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ var _ = Describe("rollback command", func() {
Expect(session).To(Say(`cf rollback APP_NAME \[--version VERSION\]`))
Expect(session).To(Say("OPTIONS:"))
Expect(session).To(Say(`-f\s+Force rollback without confirmation`))
Expect(session).To(Say("--strategy Deployment strategy can be canary or rolling. When not specified, it defaults to rolling."))
Expect(session).To(Say(`--version\s+Roll back to the specified revision`))
Expect(session).To(Say("--max-in-flight"))
Expect(session).To(Say(`--strategy\s+Deployment strategy can be canary or rolling. When not specified, it defaults to rolling.`))
Expect(session).To(Say(`--version\s+Roll back to the specified revision`))
Expect(session).To(Say("SEE ALSO:"))
Expect(session).To(Say("revisions"))
})
Expand Down

0 comments on commit deff01c

Please sign in to comment.