Skip to content

Commit

Permalink
pass tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwrfuller committed Jan 13, 2025
1 parent aba1cfa commit 0bcad63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions v2/ahoy.go
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ func getCommands(config Config) []*cli.Command {
fmt.Fprintln(os.Stderr)
os.Exit(1)
}
return nil
return nil
}
}

Expand Down Expand Up @@ -372,7 +372,7 @@ func addDefaultCommands(commands []*cli.Command) []*cli.Command {
fmt.Println("Example .ahoy.yml downloaded to the current directory. You can customize it to suit your needs!")
}
}
return nil
return nil
},
}

Expand Down Expand Up @@ -429,7 +429,7 @@ func NoArgsAction(c *cli.Context) error {

// Exit gracefully if we get to here.
os.Exit(0)
return nil
return nil
}

// BeforeCommand runs before every command so arguments or flags must be passed
Expand Down
2 changes: 1 addition & 1 deletion v2/tests/sub-commands.bats
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ teardown() {
[ "$status" -eq 1 ]

# Check that sub1-cmd and sub2-cmd are listed under main-cmd
run ./ahoy main-cmd --help
run ./ahoy main-cmd
echo $output
[ "$status" -eq 0 ]
[[ "$output" =~ "sub1-cmd" ]]
Expand Down

0 comments on commit 0bcad63

Please sign in to comment.