Effortless bug submission
Let us create a bug
command using the Cobra generator for users to submit issues to the developers of the audiofile
CLI:
cobra-cli add bug bug created at /Users/mmontagnino/Code/src/github.com/marianina8/audiofile
Now that we have the bug
command created, the Run
field is changed to extract details of the application and launch a web browser with the data already added and ready for the user to just finish off the submission with some extra details:
var bugCmd = &cobra.Command{ Use: "bug", Short: "Submit a bug", Long: "Bug opens the default browser to start a bug report which will include useful system information.", RunE: func(cmd *cobra.Command, args []string) error { if len(args...