Skip to content

Commit

Permalink
Update help message for restart-app-instance command (#3128)
Browse files Browse the repository at this point in the history
  • Loading branch information
gururajsh authored Aug 22, 2024
1 parent c1b66a0 commit 4ab708f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion command/common/command_list_v7.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ type commandList struct {
Rollback v7.RollbackCommand `command:"rollback" description:"Rollback to the specified revision of an app"`
StagePackage v7.StagePackageCommand `command:"stage-package" alias:"stage" description:"Stage a package into a droplet"`
Restart v7.RestartCommand `command:"restart" alias:"rs" description:"Stop all instances of the app, then start them again."`
RestartAppInstance v7.RestartAppInstanceCommand `command:"restart-app-instance" description:"Terminate, then instantiate an app instance"`
RestartAppInstance v7.RestartAppInstanceCommand `command:"restart-app-instance" description:"Stop, then start application instance without updating application environment"`
RouterGroups v7.RouterGroupsCommand `command:"router-groups" description:"List router groups"`
Route v7.RouteCommand `command:"route" alias:"ro" description:"Display route details and mapped destinations"`
Routes v7.RoutesCommand `command:"routes" alias:"r" description:"List all routes in the current space or the current organization"`
Expand Down
4 changes: 2 additions & 2 deletions integration/v7/isolated/restart_app_instance_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ var _ = Describe("restart-app-instance command", func() {
It("appears in cf help -a", func() {
session := helpers.CF("help", "-a")
Eventually(session).Should(Exit(0))
Expect(session).To(HaveCommandInCategoryWithDescription("restart-app-instance", "APPS", "Terminate, then instantiate an app instance"))
Expect(session).To(HaveCommandInCategoryWithDescription("restart-app-instance", "APPS", "Stop, then start application instance without updating application environment"))
})

It("Displays command usage to output", func() {
session := helpers.CF("restart-app-instance", "--help")
Eventually(session).Should(Say("NAME:"))
Eventually(session).Should(Say("restart-app-instance - Terminate, then instantiate an app instance"))
Eventually(session).Should(Say("restart-app-instance - Stop, then start application instance without updating application environment"))
Eventually(session).Should(Say("USAGE:"))
Eventually(session).Should(Say(`cf restart-app-instance APP_NAME INDEX [--process PROCESS]`))
Eventually(session).Should(Say(`OPTIONS:`))
Expand Down

0 comments on commit 4ab708f

Please sign in to comment.