(deps commandDeps)
| 725 | } |
| 726 | |
| 727 | func newMemoryDecisionsShowCommand(deps commandDeps) *cobra.Command { |
| 728 | return &cobra.Command{ |
| 729 | Use: "show <id>", |
| 730 | Short: "Show one Memory v2 controller decision", |
| 731 | Args: exactOneNonBlankArg(), |
| 732 | RunE: func(cmd *cobra.Command, args []string) error { |
| 733 | client, err := clientFromDeps(deps) |
| 734 | if err != nil { |
| 735 | return err |
| 736 | } |
| 737 | response, err := client.GetMemoryDecision(cmd.Context(), strings.TrimSpace(args[0])) |
| 738 | if err != nil { |
| 739 | return err |
| 740 | } |
| 741 | return writeCommandOutput(cmd, memoryDecisionBundle("Memory Decision", response.Decision, response)) |
| 742 | }, |
| 743 | } |
| 744 | } |
| 745 | |
| 746 | func newMemoryDecisionsRevertCommand(deps commandDeps) *cobra.Command { |
| 747 | var reason string |
no test coverage detected