Skip to content

Commit 0bcad63

Browse files
committed
pass tests
1 parent aba1cfa commit 0bcad63

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

v2/ahoy.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ func getCommands(config Config) []*cli.Command {
292292
fmt.Fprintln(os.Stderr)
293293
os.Exit(1)
294294
}
295-
return nil
295+
return nil
296296
}
297297
}
298298

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

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

430430
// Exit gracefully if we get to here.
431431
os.Exit(0)
432-
return nil
432+
return nil
433433
}
434434

435435
// BeforeCommand runs before every command so arguments or flags must be passed

v2/tests/sub-commands.bats

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ teardown() {
5959
[ "$status" -eq 1 ]
6060

6161
# Check that sub1-cmd and sub2-cmd are listed under main-cmd
62-
run ./ahoy main-cmd --help
62+
run ./ahoy main-cmd
6363
echo $output
6464
[ "$status" -eq 0 ]
6565
[[ "$output" =~ "sub1-cmd" ]]

0 commit comments

Comments
 (0)