forked from TrueCloudLab/frostfs-locode-db
[#13] locode: Use stdout as default output
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
f35b1c62e8
commit
c7cb68f1f7
1 changed files with 3 additions and 0 deletions
3
main.go
3
main.go
|
@ -35,6 +35,9 @@ func ExitOnErr(cmd *cobra.Command, errFmt string, err error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
// use stdout as default output for cmd.Print()
|
||||||
|
rootCmd.SetOut(os.Stdout)
|
||||||
|
|
||||||
initUtilLocodeGenerateCmd()
|
initUtilLocodeGenerateCmd()
|
||||||
initUtilLocodeInfoCmd()
|
initUtilLocodeInfoCmd()
|
||||||
rootCmd.AddCommand(locodeGenerateCmd, locodeInfoCmd)
|
rootCmd.AddCommand(locodeGenerateCmd, locodeInfoCmd)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue