Switch from kingpin to cobra

This enables easier use of sub-commands for flexibility
This commit is contained in:
2018-07-08 02:57:33 +01:00
parent 6883984950
commit 85cf2ac225
109 changed files with 9858 additions and 15045 deletions

19
cmd/helpers.go Normal file
View File

@@ -0,0 +1,19 @@
package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
func usage_er(cmd *cobra.Command, msg interface{}) {
cmd.Usage()
fmt.Println("")
er(msg)
}
func er(msg interface{}) {
fmt.Println("ERROR:", msg)
os.Exit(1)
}