Skip to content

Commit

Permalink
Wire up the status command under the live command group
Browse files Browse the repository at this point in the history
  • Loading branch information
mortent committed Sep 14, 2020
1 parent 47bb730 commit e7c8312
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion commands/livecmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import (
"sigs.k8s.io/cli-utils/cmd/diff"
"sigs.k8s.io/cli-utils/cmd/initcmd"
"sigs.k8s.io/cli-utils/cmd/preview"
"sigs.k8s.io/cli-utils/cmd/status"
)

func GetLiveCommand(name string, f util.Factory) *cobra.Command {
Expand Down Expand Up @@ -78,10 +79,15 @@ func GetLiveCommand(name string, f util.Factory) *cobra.Command {
destroyCmd.Long = livedocs.DestroyShort + "\n" + livedocs.DestroyLong
destroyCmd.Example = livedocs.DestroyExamples

statusCmd := status.StatusCommand(f)
statusCmd.Short = livedocs.StatusShort
statusCmd.Long = livedocs.StatusLong
statusCmd.Example = livedocs.StatusExamples

fetchOpenAPICmd := cmdfetchk8sschema.NewCommand(name, f, ioStreams)

liveCmd.AddCommand(initCmd, applyCmd, previewCmd, diffCmd, destroyCmd,
fetchOpenAPICmd)
fetchOpenAPICmd, statusCmd)

return liveCmd
}

0 comments on commit e7c8312

Please sign in to comment.