mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-05 16:27:26 -08:00
25 lines
538 B
Go
25 lines
538 B
Go
package cli
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
// promptCmd represents the prompt command
|
|
var promptCmd = &cobra.Command{
|
|
Use: "prompt",
|
|
Short: "Set up the prompt for your shell (deprecated)",
|
|
Long: `Set up the prompt for your shell. (deprecated)`,
|
|
Args: cobra.NoArgs,
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
_ = cmd.Help()
|
|
},
|
|
}
|
|
|
|
func init() { //nolint:gochecknoinits
|
|
// legacy support
|
|
promptCmd.AddCommand(initCmd)
|
|
promptCmd.AddCommand(debugCmd)
|
|
promptCmd.AddCommand(printCmd)
|
|
rootCmd.AddCommand(promptCmd)
|
|
}
|