Last active
August 26, 2016 05:06
-
-
Save mweagle/a5791f50d0d275987650b449c666784d to your computer and use it in GitHub Desktop.
Spartav0.8.0_newCommand
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Custom command to startup a simple HelloWorld HTTP server | |
sqsWorkerCommand := &cobra.Command{ | |
Use: "sqsWorker", | |
Short: "Sample SQS Worker processor", | |
Long: fmt.Sprintf("Sample SQS listener"), | |
RunE: func(cmd *cobra.Command, args []string) error { | |
return sqsListener(sparta.OptionsGlobal.Logger) | |
}, | |
} | |
sparta.CommandLineOptions.Root.AddCommand(sqsWorkerCommand) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment