mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -08:00
feat(debug): add shell name
This commit is contained in:
parent
52b01aff63
commit
6fea7ff017
|
@ -26,6 +26,7 @@ var debugCmd = &cobra.Command{
|
|||
Config: config,
|
||||
Debug: true,
|
||||
PWD: pwd,
|
||||
Shell: shellName,
|
||||
},
|
||||
}
|
||||
env.Init()
|
||||
|
@ -58,5 +59,6 @@ var debugCmd = &cobra.Command{
|
|||
|
||||
func init() { //nolint:gochecknoinits
|
||||
debugCmd.Flags().StringVar(&pwd, "pwd", "", "current working directory")
|
||||
debugCmd.Flags().StringVar(&shellName, "shell", "", "the shell to print for")
|
||||
RootCmd.AddCommand(debugCmd)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue