WeKnora/cli/cmd
nullkey 73a88b4f0a feat(cli): api --input + completion smoke
api (3-11):
- `--input <file>` reads the request body from disk; `--input -` reads
  from stdin. Matches gh CLI canonical naming verified against the gh
  manual ("The file to use as body for the HTTP request — use \"-\" to
  read from standard input"). `--data` / `--input` are mutually
  exclusive.
- Options.StdinReader (defaults to iostreams.IO.In) for test injection.

completion (3-13 smoke only — release-artifact ship deferred to release
milestone):
- Smoke test asserts cobra's auto-registered bash/zsh/fish/powershell
  scripts produce non-trivially-sized output with the per-shell
  signature (#compdef / complete -c weknora / etc.). Guards against
  cobra bumps silently breaking completion for one shell.

3-14 doctor --no-cache: already implemented (factory.go:297) with
TestDoctor_NoCache_BypassesCache covering it — verified, no change
needed.

Roadmap: 3-11, 3-13 (smoke), 3-14 (verified).
2026-05-14 10:57:17 +08:00
..
api feat(cli): api --input + completion smoke 2026-05-14 10:57:17 +08:00
auth feat(cli): auth refresh + transparent 401 retry transport 2026-05-14 10:57:17 +08:00
chat fix(cli): correct KB id detection, SSE terminal-frame, and CI test isolation 2026-05-12 13:20:42 +08:00
context feat(cli): session subtree + kb edit / pin / empty 2026-05-14 10:57:17 +08:00
doc feat(cli): doc download + upload --recursive 2026-05-14 10:57:17 +08:00
doctor fix(cli): correct KB id detection, SSE terminal-frame, and CI test isolation 2026-05-12 13:20:42 +08:00
kb feat(cli): session subtree + kb edit / pin / empty 2026-05-14 10:57:17 +08:00
link fix(cli): correct KB id detection, SSE terminal-frame, and CI test isolation 2026-05-12 13:20:42 +08:00
search feat(cli): search verb-noun subtree (chunks/kb/docs/sessions) 2026-05-14 10:57:17 +08:00
session feat(cli): session subtree + kb edit / pin / empty 2026-05-14 10:57:17 +08:00
completion_test.go feat(cli): api --input + completion smoke 2026-05-14 10:57:17 +08:00
root.go feat(cli): search verb-noun subtree (chunks/kb/docs/sessions) 2026-05-14 10:57:17 +08:00
root_test.go feat(cli): contract test suite + dependabot (PR-8) 2026-05-09 12:18:01 +08:00