Add context to content-server assets download error

This commit is contained in:
chris
2020-08-05 14:47:19 -04:00
committed by Chris Marshall
parent 13d35f17f1
commit f8559befca
6 changed files with 15 additions and 12 deletions

View File

@ -15,7 +15,7 @@ var global struct {
Verbosity int
}
func NewRootCommand() *cobra.Command {
func main() {
cmd := &cobra.Command{
Use: "q3",
Short: "",
@ -28,11 +28,8 @@ func NewRootCommand() *cobra.Command {
)
cmd.PersistentFlags().CountVarP(&global.Verbosity, "verbose", "v", "log output verbosity")
return cmd
}
func main() {
if err := NewRootCommand().Execute(); err != nil {
if err := cmd.Execute(); err != nil {
log.Fatal(err)
}
}