mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 13:04:04 -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