Merge pull request #332 from adamclerk/fix/spellingErrors

Fixes spelling issues and import alphabetical issues
This commit is contained in:
Jesse Szwedko 2016-02-09 20:42:30 -08:00
commit 0ab42fd482
3 changed files with 6 additions and 6 deletions

2
app.go
View File

@ -9,7 +9,7 @@ import (
"time" "time"
) )
// App is the main structure of a cli application. It is recomended that // App is the main structure of a cli application. It is recommended that
// an app be created with the cli.NewApp() function // an app be created with the cli.NewApp() function
type App struct { type App struct {
// The name of the program. Defaults to path.Base(os.Args[0]) // The name of the program. Defaults to path.Base(os.Args[0])

View File

@ -2,6 +2,7 @@ package cli
import ( import (
"bytes" "bytes"
"errors"
"flag" "flag"
"fmt" "fmt"
"io" "io"
@ -9,7 +10,6 @@ import (
"os" "os"
"strings" "strings"
"testing" "testing"
"errors"
) )
func ExampleApp_Run() { func ExampleApp_Run() {
@ -947,7 +947,7 @@ func TestApp_Run_DoesNotOverwriteErrorFromBefore(t *testing.T) {
err := app.Run([]string{"foo"}) err := app.Run([]string{"foo"})
if err == nil { if err == nil {
t.Fatalf("expected to recieve error from Run, got none") t.Fatalf("expected to receive error from Run, got none")
} }
if !strings.Contains(err.Error(), "before error") { if !strings.Contains(err.Error(), "before error") {
@ -975,7 +975,7 @@ func TestApp_Run_SubcommandDoesNotOverwriteErrorFromBefore(t *testing.T) {
err := app.Run([]string{"foo", "bar"}) err := app.Run([]string{"foo", "bar"})
if err == nil { if err == nil {
t.Fatalf("expected to recieve error from Run, got none") t.Fatalf("expected to receive error from Run, got none")
} }
if !strings.Contains(err.Error(), "before error") { if !strings.Contains(err.Error(), "before error") {

View File

@ -4,10 +4,10 @@ import (
"flag" "flag"
"fmt" "fmt"
"os" "os"
"runtime"
"strconv" "strconv"
"strings" "strings"
"time" "time"
"runtime"
) )
// This flag enables bash-completion for all commands and subcommands // This flag enables bash-completion for all commands and subcommands
@ -30,7 +30,7 @@ var HelpFlag = BoolFlag{
} }
// Flag is a common interface related to parsing flags in cli. // Flag is a common interface related to parsing flags in cli.
// For more advanced flag parsing techniques, it is recomended that // For more advanced flag parsing techniques, it is recommended that
// this interface be implemented. // this interface be implemented.
type Flag interface { type Flag interface {
fmt.Stringer fmt.Stringer