cmd

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2016 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL