feat: stop all and skip all with shared confirmation helper
This commit is contained in:
parent
4bc6666d0b
commit
6a3f354cb7
4 changed files with 179 additions and 54 deletions
|
|
@ -7,8 +7,8 @@ load test_helper
|
|||
[ "${status}" -eq 0 ]
|
||||
[[ "${output}" =~ "<time> <message...>" ]]
|
||||
[[ "${output}" =~ "every <rules> <time> <message...>" ]]
|
||||
[[ "${output}" =~ "stop <id|tag>" ]]
|
||||
[[ "${output}" =~ "skip <id|tag>" ]]
|
||||
[[ "${output}" =~ "stop <all|id|tag>" ]]
|
||||
[[ "${output}" =~ "skip <all|id|tag>" ]]
|
||||
[[ "${output}" =~ "check" ]]
|
||||
[[ "${output}" =~ "help [<subcommand>]" ]]
|
||||
[[ "${output}" =~ "Options:" ]]
|
||||
|
|
@ -39,14 +39,14 @@ load test_helper
|
|||
run_nag help stop
|
||||
[ "${status}" -eq 0 ]
|
||||
[[ "${output}" =~ "Usage:" ]]
|
||||
[[ "${output}" =~ "stop <id|tag>" ]]
|
||||
[[ "${output}" =~ "stop <all|id|tag>" ]]
|
||||
}
|
||||
|
||||
@test "help skip shows skip usage" {
|
||||
run_nag help skip
|
||||
[ "${status}" -eq 0 ]
|
||||
[[ "${output}" =~ "Usage:" ]]
|
||||
[[ "${output}" =~ "skip <id|tag>" ]]
|
||||
[[ "${output}" =~ "skip <all|id|tag>" ]]
|
||||
}
|
||||
|
||||
@test "help every shows every usage" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue