Skip to content

Commit 327ab44

Browse files
committed
initialize opts
1 parent 97c71ba commit 327ab44

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/cli/clu2adv/clu2adv.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ func Builder() *cobra.Command {
1212
o := &struct {
1313
*cli.BaseOpts
1414
includeMoved bool
15-
}{}
16-
o.Fs = afero.NewOsFs()
15+
}{
16+
BaseOpts: &cli.BaseOpts{
17+
Fs: afero.NewOsFs(),
18+
},
19+
}
1720
o.Converter = cli.ConvertFunc(func(config []byte) ([]byte, error) {
1821
return convert.ClusterToAdvancedCluster(config, o.includeMoved)
1922
})

0 commit comments

Comments
 (0)