diff --git a/cmd/swctl/cmd_deploy.go b/cmd/swctl/cmd_deploy.go index b33d7f36..c7ec21aa 100644 --- a/cmd/swctl/cmd_deploy.go +++ b/cmd/swctl/cmd_deploy.go @@ -144,7 +144,7 @@ func newDeploymentServices(cli Cli) *cobra.Command { Args: cobra.ArbitraryArgs, DisableFlagParsing: true, RunE: func(cmd *cobra.Command, args []string) error { - out, err := cli.Exec("docker compose services", args) + out, err := cli.Exec("docker compose ps --services", args) if err != nil { return err } diff --git a/cmd/swctl/cmd_status.go b/cmd/swctl/cmd_status.go index b9bd5a03..a2c9db9d 100644 --- a/cmd/swctl/cmd_status.go +++ b/cmd/swctl/cmd_status.go @@ -4,6 +4,7 @@ import ( "fmt" "os/exec" + "github.com/gookit/color" "github.com/spf13/cobra" ) @@ -21,7 +22,7 @@ func NewStatusCmd(cli Cli) *cobra.Command { cmd := &cobra.Command{ Use: "status [flags]", Short: "Show status of StoneWork components", - Example: statusExample, + Example: color.Sprint(statusExample), Args: cobra.ArbitraryArgs, FParseErrWhitelist: cobra.FParseErrWhitelist{ UnknownFlags: true,