This is awesome dude, but any ideas on how to make sure that flags and arguments are being handled properly? II'm brand new to Go, but I feel like I have a pretty decent grasp on it already, but for the life of me I can't figure out how to test my viper/cobra flag/args/env handling.
ur experience shines thru ur tutorials; keep it up! thnx for the guidance
I’m glad you liked it.
This is awesome dude, but any ideas on how to make sure that flags and arguments are being handled properly? II'm brand new to Go, but I feel like I have a pretty decent grasp on it already, but for the life of me I can't figure out how to test my viper/cobra flag/args/env handling.
Shit I'm an idiot... I should've waited until you got to the cmd.SetArgs function lol.
@@andrewiglinski148 You should be able to set the flags in your unit tests, and the command should generate expected output.