Skip to content

Commit bb3a67c

Browse files
authored
[services] make down an alias of stop (#1560)
## Summary As per user request ## How was it tested? `devbox services down` did run the same as `devbox services stop`
1 parent 2d8c4ff commit bb3a67c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

internal/boxcli/services.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ func servicesCmd(persistentPreRunE ...cobraFunc) *cobra.Command {
7777
}
7878

7979
stopCommand := &cobra.Command{
80-
Use: "stop [service]...",
81-
Short: "Stop one or more services in the current project. If no service is specified, stops all services in the current project.",
82-
Long: `Stop one or more services in the current project. If no service is specified, stops all services in the current project. \nIf the --all-projects flag is specified, stops all running services across all your projects. This flag cannot be used with [service] arguments.`,
80+
Use: "stop [service]...",
81+
Aliases: []string{"down"},
82+
Short: `Stop one or more services in the current project. If no service is specified,
83+
stops all services in the current project.`,
84+
Long: `Stop one or more services in the current project. If no service is specified, stops all services in the current project. \nIf the --all-projects flag is specified, stops all running services across all your projects. This flag cannot be used with [service] arguments.`,
8385
RunE: func(cmd *cobra.Command, args []string) error {
8486
return stopServices(cmd, args, flags, serviceStopFlags)
8587
},

0 commit comments

Comments
 (0)