feat: stop all and skip all with shared confirmation helper

This commit is contained in:
Lewis Wynne 2026-04-02 18:51:08 +01:00
parent 4bc6666d0b
commit 6a3f354cb7
4 changed files with 179 additions and 54 deletions

View file

@ -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" {