newNodesCmd returns the `nodes` parent command.
()
| 51 | |
| 52 | // newNodesCmd returns the `nodes` parent command. |
| 53 | func newNodesCmd() *cobra.Command { |
| 54 | cmd := &cobra.Command{ |
| 55 | Use: "nodes", |
| 56 | Short: "Manage and inspect Proxmox nodes", |
| 57 | } |
| 58 | |
| 59 | cmd.AddCommand(newNodesListCmd()) |
| 60 | cmd.AddCommand(newNodesShowCmd()) |
| 61 | cmd.AddCommand(newNodesShellCmd()) |
| 62 | |
| 63 | return cmd |
| 64 | } |
| 65 | |
| 66 | func newNodesListCmd() *cobra.Command { |
| 67 | return &cobra.Command{ |
no test coverage detected