feat(debug): add shell name

This commit is contained in:
Jan De Dobbeleer 2022-11-03 14:10:35 +01:00 committed by Jan De Dobbeleer
parent 52b01aff63
commit 6fea7ff017

View file

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