Skip to content

Commit

Permalink
fix: add options sub-cmd for kusion (#791)
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-hm19 committed Feb 6, 2024
1 parent c16672e commit 99168ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/spf13/cobra"
"k8s.io/cli-runtime/pkg/genericclioptions"
cliflag "k8s.io/component-base/cli/flag"
"k8s.io/kubectl/pkg/cmd/options"
"k8s.io/kubectl/pkg/util/templates"

"kusionstack.io/kusion/pkg/cmd/apply"
Expand Down Expand Up @@ -114,6 +115,7 @@ func NewKusionctlCmd(o KusionctlOptions) *cobra.Command {

templates.ActsAsRootCommand(cmds, filters, groups...)
cmds.AddCommand(version.NewCmdVersion())
cmds.AddCommand(options.NewCmdOptions(o.IOStreams.Out))

return cmds
}
Expand Down

0 comments on commit 99168ac

Please sign in to comment.