Private
(ctx context.Context, ns *docker.Namespace, cmd *cobra.Command, args []string)
| 27 | // Private |
| 28 | |
| 29 | func (s *stopCommand) run(ctx context.Context, ns *docker.Namespace, cmd *cobra.Command, args []string) error { |
| 30 | host := args[0] |
| 31 | |
| 32 | err := withApplication(ns, host, "stopping", func(app *docker.Application) error { |
| 33 | return app.Stop(ctx) |
| 34 | }) |
| 35 | if err != nil { |
| 36 | return err |
| 37 | } |
| 38 | |
| 39 | fmt.Printf("Stopped %s\n", host) |
| 40 | return nil |
| 41 | } |
nothing calls this directly
no test coverage detected