Initial commit still with some hardcoded things
This commit is contained in:
+28
@@ -0,0 +1,28 @@
|
||||
// Package cmd provides a command line interface to interact with this model.
|
||||
package cmd
|
||||
|
||||
import (
|
||||
"os"
|
||||
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
// rootCmd represents the base command when called without any subcommands
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "invcertsw",
|
||||
Short: "CLI invcertsw utility",
|
||||
Long: `Utility to identify invoicing software from invoices`,
|
||||
}
|
||||
|
||||
// Execute adds all child commands to the root command and sets flags appropriately.
|
||||
// This is called by main.main(). It only needs to happen once to the rootCmd.
|
||||
func Execute() {
|
||||
err := rootCmd.Execute()
|
||||
if err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
}
|
||||
|
||||
func init() {
|
||||
// rootCmd.PersistentFlags().BoolP("dbstore", "s", false, "Store data in database")
|
||||
}
|
||||
Reference in New Issue
Block a user