Fix: Print command output using stdout channel #6268 (#6273)

Co-authored-by: Priyanaka Kotturi
This commit is contained in:
Pranav
2023-08-22 07:25:20 +05:30
committed by GitHub
parent 5b6b66a5cc
commit c315e81757
3 changed files with 3 additions and 0 deletions

View File

@@ -87,6 +87,7 @@ func ClusterCommandGroup(f velacmd.Factory, order string, c common.Args, ioStrea
return nil
},
}
cmd.SetOut(ioStreams.Out)
cmd.AddCommand(
NewClusterListCommand(&c),
NewClusterJoinCommand(&c, ioStreams),

View File

@@ -82,6 +82,7 @@ func DefinitionCommandGroup(c common.Args, order string, ioStreams util.IOStream
types.TagCommandType: types.TypeExtension,
},
}
cmd.SetOut(ioStreams.Out)
cmd.AddCommand(
NewDefinitionGetCommand(c),
NewDefinitionListCommand(c),

View File

@@ -56,6 +56,7 @@ func NewWorkflowCommand(c common.Args, order string, ioStreams cmdutil.IOStreams
Args: c,
Writer: ioStreams.Out,
}
cmd.SetOut(ioStreams.Out)
cmd.AddCommand(
NewWorkflowSuspendCommand(c, ioStreams, wargs),
NewWorkflowResumeCommand(c, ioStreams, wargs),