()
| 59 | } |
| 60 | |
| 61 | func newCommunityScriptsCmd() *cobra.Command { |
| 62 | cmd := &cobra.Command{ |
| 63 | Use: "community-scripts", |
| 64 | Aliases: []string{"scripts"}, |
| 65 | Short: "Search and install Proxmox Community Scripts", |
| 66 | Long: `Search, inspect, and install Proxmox Community Scripts from CLI mode. |
| 67 | |
| 68 | The community-scripts plugin must be enabled in config. Install uses SSH to the |
| 69 | selected Proxmox node and runs the same remote installer flow as the TUI plugin.`, |
| 70 | } |
| 71 | |
| 72 | cmd.AddCommand(newCommunityScriptsSearchCmd()) |
| 73 | cmd.AddCommand(newCommunityScriptsShowCmd()) |
| 74 | cmd.AddCommand(newCommunityScriptsPlanCmd()) |
| 75 | cmd.AddCommand(newCommunityScriptsInstallCmd()) |
| 76 | |
| 77 | return cmd |
| 78 | } |
| 79 | |
| 80 | func newCommunityScriptsSearchCmd() *cobra.Command { |
| 81 | return &cobra.Command{ |
no test coverage detected