Skip to content

Commit

Permalink
Fix minor typos in cobra_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyfok committed Nov 20, 2015
1 parent ec63835 commit 1f03277
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cobra_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ var cmdTimes = &Command{

var cmdRootNoRun = &Command{
Use: "cobra-test",
Short: "The root can run it's own function",
Short: "The root can run its own function",
Long: "The root description for help",
PersistentPreRun: func(cmd *Command, args []string) {
rootPersPre = args
Expand All @@ -111,7 +111,7 @@ var cmdRootSameName = &Command{

var cmdRootWithRun = &Command{
Use: "cobra-test",
Short: "The root can run it's own function",
Short: "The root can run its own function",
Long: "The root description for help",
Run: func(cmd *Command, args []string) {
tr = args
Expand Down Expand Up @@ -637,7 +637,7 @@ func TestSubcommandArgEvaluation(t *testing.T) {
func TestPersistentFlags(t *testing.T) {
fullSetupTest("echo -s something -p more here")

// persistentFlag should act like normal flag on it's own command
// persistentFlag should act like normal flag on its own command
if strings.Join(te, " ") != "more here" {
t.Errorf("flags didn't leave proper args remaining..%s given", te)
}
Expand All @@ -648,7 +648,7 @@ func TestPersistentFlags(t *testing.T) {
t.Errorf("persistent bool flag not parsed correctly. Expected true, had %v", flagbp)
}

// persistentFlag should act like normal flag on it's own command
// persistentFlag should act like normal flag on its own command
fullSetupTest("echo times -s again -c -p test here")

if strings.Join(tt, " ") != "test here" {
Expand Down

0 comments on commit 1f03277

Please sign in to comment.