@@ -11,7 +11,7 @@ import (
1111)
1212
1313func newTestRootCmd (args []string ) (rootCmd * cobra.Command ) {
14- root := CreateRootCommand ("v0.0.0-test" )
14+ root := CreateRootCommand ("v0.0.0-test" , "" )
1515 root .SetArgs (args )
1616 InitCompletionCmd (root , nil )
1717
@@ -27,7 +27,7 @@ func newTestRootCmdWithConfig(args []string) (rootCmd *cobra.Command, out *bytes
2727 cfg .Commands ["foo" ] = & config.Command {Name : "foo" }
2828 cfg .Commands ["bar" ] = & config.Command {Name : "bar" }
2929
30- root := CreateRootCommand ("v0.0.0-test" )
30+ root := CreateRootCommand ("v0.0.0-test" , "" )
3131 root .SetArgs (args )
3232 root .SetOut (bufOut )
3333 root .SetErr (bufOut )
@@ -142,7 +142,7 @@ func TestSelfCmd(t *testing.T) {
142142 t .Run ("should return exit code 2 for unknown self subcommand" , func (t * testing.T ) {
143143 bufOut := new (bytes.Buffer )
144144
145- rootCmd := CreateRootCommand ("v0.0.0-test" )
145+ rootCmd := CreateRootCommand ("v0.0.0-test" , "" )
146146 rootCmd .SetArgs ([]string {"self" , "ls" })
147147 rootCmd .SetOut (bufOut )
148148 rootCmd .SetErr (bufOut )
@@ -178,7 +178,7 @@ func TestSelfCmd(t *testing.T) {
178178 t .Run ("should return exit code 2 for unknown self subcommand with no suggestions" , func (t * testing.T ) {
179179 bufOut := new (bytes.Buffer )
180180
181- rootCmd := CreateRootCommand ("v0.0.0-test" )
181+ rootCmd := CreateRootCommand ("v0.0.0-test" , "" )
182182 rootCmd .SetArgs ([]string {"self" , "zzzznotacommand" })
183183 rootCmd .SetOut (bufOut )
184184 rootCmd .SetErr (bufOut )
0 commit comments