MCPcopy Create free account
hub / github.com/devnullvoid/pvetui / newConfigWizardCmd

Function newConfigWizardCmd

internal/cli/commands.go:11–28  ·  view source on GitHub ↗

newConfigWizardCmd creates the config wizard command

()

Source from the content-addressed store, hash-verified

9
10// newConfigWizardCmd creates the config wizard command
11func newConfigWizardCmd() *cobra.Command {
12 cmd := &cobra.Command{
13 Use: "config-wizard",
14 Short: "Launch interactive config wizard",
15 Long: `Launch an interactive configuration wizard to set up your pvetui configuration.
16
17This wizard will guide you through creating a configuration file with your
18Proxmox server details, authentication credentials, and other settings.
19
20You can add or edit a specific profile using the --profile flag:
21 pvetui config-wizard --profile my-profile`,
22 RunE: runConfigWizard,
23 }
24
25 cmd.Flags().StringP("profile", "p", "", "Profile to add or edit")
26
27 return cmd
28}
29
30// runConfigWizard executes the config wizard
31func runConfigWizard(cmd *cobra.Command, args []string) error {

Callers 1

initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected