Created
October 11, 2015 22:12
-
-
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"
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
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