diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-06-21 13:58:51 +0200 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-06-27 10:33:04 +0200 |
commit | 7ebe865e012ae9ad893def1bdf498e1a081b02d4 (patch) | |
tree | 643042eca421abb67e26dd554884dd0fc7234e87 /bin | |
parent | 7771ea42f121b45f6fd2a550497dea416f851dde (diff) |
check-new-issues: add a skip command
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/check-new-issues | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/check-new-issues b/bin/check-new-issues index 7f4f3a0eec..c9c888ba48 100755 --- a/bin/check-new-issues +++ b/bin/check-new-issues @@ -285,7 +285,7 @@ def print_stats(): def print_commands(): print(''' - * blank line to skip to next issue + * s to skip to next issue * .h to repeat this help output of the list of commands * .fname to do "apt-file search name" * .cname to do "apt-cache search name" @@ -587,6 +587,9 @@ def present_issue(name): line = line.strip() if m := re.match(r"^\s*$", line): + continue + elif m := re.match(r"^s$", line): + # skip command break elif m := re.match(r"^\.c(.*)$", line): s = m.group(1).strip() @@ -684,7 +687,7 @@ def present_issue(name): return quit -completion_commands = ".f .c .w .m .r .g ! v e - .help n q d".split() +completion_commands = ".f .c .w .m .r .g ! v e - .help n s q d".split() def complete_line(text, state): response = None |