[#1665] neofs-lens: Use stdout as default output

Signed-off-by: a.y.volkov <a.y.volkov@yadro.com>
This commit is contained in:
a.y.volkov 2022-08-07 00:16:04 +03:00 committed by Pavel Karpy
parent cd71de69a0
commit 81684b6f04

View file

@ -30,6 +30,8 @@ func entryPoint(cmd *cobra.Command, _ []string) error {
} }
func init() { func init() {
// use stdout as default output for cmd.Print()
command.SetOut(os.Stdout)
command.Flags().Bool("version", false, "application version") command.Flags().Bool("version", false, "application version")
command.AddCommand( command.AddCommand(
cmdlist.Command, cmdlist.Command,