`execenv.NewEnv()` is called in each Cobra command constructor

Timeline

Steve Moyer (smoyer64) opened

Instead, construct the environment in the root command and pass it to each constructor.

Michael Muré (MichaelMure) closed the bug