NewCmd create the "instance status" subcommand
()
| 41 | |
| 42 | // NewCmd create the "instance status" subcommand |
| 43 | func NewCmd() *cobra.Command { |
| 44 | cmd := &cobra.Command{ |
| 45 | Use: "status", |
| 46 | RunE: func(cmd *cobra.Command, _ []string) error { |
| 47 | return statusSubCommand(cmd.Context()) |
| 48 | }, |
| 49 | } |
| 50 | |
| 51 | return cmd |
| 52 | } |
| 53 | |
| 54 | func statusSubCommand(ctx context.Context) error { |
| 55 | contextLogger := log.FromContext(ctx) |
no test coverage detected