onflow / flow-cli

The Flow CLI is a command-line interface that provides useful utilities for building Flow applications
https://onflow.org
Apache License 2.0
206 stars 62 forks source link

Fix `flow version` output bug #1490

Closed jribbink closed 3 months ago

jribbink commented 3 months ago

Closes #1489

Description

Fix flow version output to use stdout instead & remove log package use (not necessary, can be done via RunE in cobra, & this way exit code is also correct, was returning exit 0 always previously)


For contributor use:

jribbink commented 3 months ago

Just ran the command again, and cobra seems to be printing usage information + printing the error twice when RunE encounters an error... looking for a workaround.