fix(debug): initialize ShellEnvironment.Version

This commit is contained in:
L. Yeung 2022-05-09 00:17:14 +08:00 committed by Jan De Dobbeleer
parent c742bff144
commit b944db841e

View file

@ -21,6 +21,7 @@ var debugCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
startTime := time.Now()
env := &environment.ShellEnvironment{
Version: cliVersion,
CmdFlags: &environment.Flags{
Config: config,
Debug: true,