Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = cobra.Command{ Use: "commerce", Long: "A service that will validate restful transactions and send them to stripe.", Run: func(cmd *cobra.Command, args []string) { configFile, err := cmd.PersistentFlags().GetString("config") if err != nil { log.Fatal("Failed to find config flag %v", err) } config, err := conf.Load(configFile) if err != nil { log.Fatal("Failed to load configration: %v", err) } execute(config) }, }
RootCmd will run the log streamer
Functions ¶
func InitCommandFlags ¶
func InitCommandFlags()
InitCommandFlags will add all the flags to the different commands
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.