I have cloned a cobra based go application where configuration is managed by viper where commands are invoked using cli as follows:
./<my go tool> <command> --<command-flag>
I am going to write tests for all the commands to see if they are working fine. Any pointers on this regarding how to start would be great.
Aucun commentaire:
Enregistrer un commentaire