feat(debug): allow adding directory

This commit is contained in:
Jan De Dobbeleer 2022-11-02 15:05:04 +01:00 committed by Jan De Dobbeleer
parent fdb05d8407
commit cbd6518faf

View file

@ -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)
} }