Skip to content

Commit

Permalink
Turns out I didn't mean to add ExampleAppCommands at all
Browse files Browse the repository at this point in the history
  • Loading branch information
jszwedko committed Mar 17, 2015
1 parent 474646a commit daad50e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,25 +66,6 @@ func ExampleAppSubcommand() {
// Hello, Jeremy
}

func ExampleAppCommands() {
// set args for examples sake
os.Args = []string{"greet", "--name", "Jeremy"}

app := cli.NewApp()
app.Name = "greet"
app.Flags = []cli.Flag{
cli.StringFlag{Name: "name", Value: "bob", Usage: "a name to say"},
}
app.Action = func(c *cli.Context) {
fmt.Printf("Hello %v\n", c.String("name"))
}
app.Author = "Harrison"
app.Email = "[email protected]"
app.Run(os.Args)
// Output:
// Hello Jeremy
}

func ExampleAppHelp() {
// set args for examples sake
os.Args = []string{"greet", "h", "describeit"}
Expand Down

0 comments on commit daad50e

Please sign in to comment.