mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-01-30 12:32:22 -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{
|
CmdFlags: &environment.Flags{
|
||||||
Config: config,
|
Config: config,
|
||||||
Debug: true,
|
Debug: true,
|
||||||
|
PWD: pwd,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
env.Init()
|
env.Init()
|
||||||
|
@ -56,5 +57,6 @@ var debugCmd = &cobra.Command{
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { //nolint:gochecknoinits
|
func init() { //nolint:gochecknoinits
|
||||||
|
debugCmd.Flags().StringVar(&pwd, "pwd", "", "current working directory")
|
||||||
RootCmd.AddCommand(debugCmd)
|
RootCmd.AddCommand(debugCmd)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue