mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-29 20:10:56 -08:00
feat(debug): allow adding directory
This commit is contained in:
parent
fdb05d8407
commit
cbd6518faf
|
@ -25,6 +25,7 @@ var debugCmd = &cobra.Command{
|
|||
CmdFlags: &environment.Flags{
|
||||
Config: config,
|
||||
Debug: true,
|
||||
PWD: pwd,
|
||||
},
|
||||
}
|
||||
env.Init()
|
||||
|
@ -56,5 +57,6 @@ var debugCmd = &cobra.Command{
|
|||
}
|
||||
|
||||
func init() { //nolint:gochecknoinits
|
||||
debugCmd.Flags().StringVar(&pwd, "pwd", "", "current working directory")
|
||||
RootCmd.AddCommand(debugCmd)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue