2022-03-12 22:43:32 -08:00
|
|
|
package cli
|
2022-03-12 13:04:08 -08:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/spf13/cobra"
|
|
|
|
)
|
|
|
|
|
|
|
|
// promptCmd represents the prompt command
|
|
|
|
var promptCmd = &cobra.Command{
|
|
|
|
Use: "prompt",
|
2022-03-25 11:03:37 -07:00
|
|
|
Short: "Set up the prompt for your shell (deprecated)",
|
2022-05-05 02:26:20 -07:00
|
|
|
Long: `Set up the prompt for your shell. (deprecated)`,
|
|
|
|
Args: cobra.NoArgs,
|
2022-03-19 11:48:37 -07:00
|
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
|
|
_ = cmd.Help()
|
|
|
|
},
|
2022-03-12 13:04:08 -08:00
|
|
|
}
|
|
|
|
|
2022-08-04 23:33:02 -07:00
|
|
|
func init() { //nolint:gochecknoinits
|
2022-03-25 11:03:37 -07:00
|
|
|
// legacy support
|
|
|
|
promptCmd.AddCommand(initCmd)
|
|
|
|
promptCmd.AddCommand(debugCmd)
|
|
|
|
promptCmd.AddCommand(printCmd)
|
2022-03-12 13:04:08 -08:00
|
|
|
rootCmd.AddCommand(promptCmd)
|
|
|
|
}
|