fix(commands): wire /usage to status (#492) (thanks @lc0rp)

This commit is contained in:
Peter Steinberger
2026-01-09 17:10:53 +01:00
parent 08caf7b9fc
commit 68ad27e31c
6 changed files with 47 additions and 3 deletions
@@ -144,6 +144,12 @@ describe("directive parsing", () => {
expect(res.cleaned).toBe("thats not /tmp/hello");
});
it("preserves spacing when stripping usage directives before paths", () => {
const res = extractStatusDirective("thats not /usage:/tmp/hello");
expect(res.hasDirective).toBe(true);
expect(res.cleaned).toBe("thats not /tmp/hello");
});
it("parses queue options and modes", () => {
const res = extractQueueDirective(
"please /queue steer+backlog debounce:2s cap:5 drop:summarize now",