Skip to content

Instantly share code, notes, and snippets.

@voxxit
Created October 11, 2015 22:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voxxit/8037c069364e9b5d2115 to your computer and use it in GitHub Desktop.
Save voxxit/8037c069364e9b5d2115 to your computer and use it in GitHub Desktop.
Code snippets for "Supercharge Your DevOps Arsenal: Building Your First CLI Tool in Go"
package main
import (
“os”
“github.com/codegangsta/cli”
)
var app *cli.App
func main() {
// Create a new app instance
app = cli.NewApp()
// Define the app we’re building
app.Name = “ey”
app.Usage = “The Engine Yard command line utility”
app.Version = “0.1.0”
// Run the app, with the given arguments
app.Run(os.Args)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment