func PromptCmd() *cobra.Command {
	var promptCmd = &cobra.Command{
		Use:   "prompt",
		Short: "Open a prompt with auto-completion (non-Windows)",
		Long: `Use this command to use the Kubicron API via a shell prompt.
	
	This command will open a prompt using go-prompt (with auto-completion) to
	allow you to run commands interactively from the shell.
	Currently this doesn't work on Windows systems`,
		Run: func(cmd *cobra.Command, args []string) {
			if len(args) > 0 {
				logger.Critical("Too many arguments.")
				os.Exit(1)
			}

			if err := runPrompt(); err != nil {
				logger.Critical(err.Error())
				os.Exit(1)
			}
		},
	}

	initializePrompt()

	return promptCmd
}
func PromptCmd() *cobra.Command {
	var promptCmd = &cobra.Command{
		Use:   "prompt",
		Short: "Open a prompt with auto-completion (non-Windows)",
		Long: `Use this command to use the Kubicron API via a shell prompt.
	
	This command will open a prompt using go-prompt (with auto-completion) to
	allow you to run commands interactively from the shell.
	Currently this doesn't work on Windows systems`,
		Run: func(cmd *cobra.Command, args []string) {
			if len(args) > 0 {
				logger.Critical("Too many arguments.")
				os.Exit(1)
			}

			if err := runPrompt(); err != nil {
				logger.Critical(err.Error())
				os.Exit(1)
			}
		},
	}

	initializePrompt()

	return promptCmd
}
func PromptCmd ( ) * cobra . Command { var promptCmd = & cobra . Command { Use : " " , Short : " " , Long : `Use this command to use the Kubicron API via a shell prompt.
	
	This command will open a prompt using go-prompt (with auto-completion) to
	allow you to run commands interactively from the shell.
	Currently this doesn't work on Windows systems` , Run : func ( cmd * cobra . Command , args [ ] string ) { if len ( args ) > 0 { logger . Critical ( " " ) os . Exit ( 1 ) } if err := runPrompt ( ) ; err != nil { logger . Critical ( err . Error ( ) ) os . Exit ( 1 ) } } , } initializePrompt ( ) return promptCmd }
// PromptCmd represents the kubicorn interactive prompt.
PromptCmd represents the kubicorn interactive prompt .