Commit graph

17 commits

Author SHA1 Message Date
atagen
76656231be fix subcommands in json model 2026-03-23 14:01:11 +11:00
atagen
640732de4b fix module 2026-03-23 13:44:35 +11:00
atagen
f2d0a42fd7 switch from sqlite to json 2026-03-23 12:17:45 +11:00
atagen
17967da43e add db control commands 2026-03-23 11:45:54 +11:00
atagen
53be599d91 fix parallelism, create completer 2026-03-23 11:40:34 +11:00
atagen
3080a5f64d run subprocesses in /tmp to avoid cwd pollution
Commands like ckb-next-dev-detect write side-effect files (reports,
tarballs) into the working directory when invoked with --help. Chdir
to /tmp around create_process_env so these don't land in the project
tree.
2026-03-23 11:01:54 +11:00
atagen
1d0d3465c1 SAVE GAME 2026-03-23 11:01:54 +11:00
atagen
5de8e62e66 fix binary wrappers being skipped 2026-03-22 23:41:43 +11:00
atagen
d0cc80109e parallel flattened queue for recursive --help resolution
Replace recursive depth-first help_resolve with BFS queue + fork-based
parallelism (up to num_cores workers). Workers marshal results back via
pipes; discovered subcommands are enqueued for the next wave.

Also fix usage positional extraction to match "USAGE" without colon
(Go/Cobra style), and skip empty-result check to consider positionals.
2026-03-22 23:06:48 +11:00
atagen
3cc278b144 make generate use recursive help scrape 2026-03-22 00:36:45 +11:00
atagen
163e330716 adopt better fp patterns 2026-03-21 21:54:24 +11:00
atagen
18c97eacd0 cli11, bsd manual 2026-03-21 21:22:41 +11:00
atagen
9c7c528a0c readme 2026-03-21 02:34:25 +11:00
atagen
e1974a7c1a update documentation for generate command and NixOS module
Rewrote nushell-integration.md to cover the three-strategy pipeline,
module wrapping, and the generate command. Simplified
runtime-completions.md. Added nixos.md with detailed explanation of
the build-time generation phases, module options, and troubleshooting.
2026-03-21 02:14:21 +11:00
atagen
7f0ec8ab4d comprehensive completion generation: native, manpage, --help
Three-strategy pipeline with priority: native completion generators
(e.g. CMD completions nushell) > manpage parsing > --help fallback.
Single `generate` command produces one module-wrapped .nu file per
command. Parallel execution scaled to cores, 200ms timeouts, ELF
string scanning to skip binaries without -h support, native gzip
decompression via camlzip, SYNOPSIS-based subcommand detection,
nix3 manpage strategy, deduplication, nushell builtin exclusion.
2026-03-21 02:14:11 +11:00
atagen
01ccf64efc first draft 2026-03-18 18:19:37 +11:00
atagen
ab009ec9af init 2026-03-18 15:40:47 +11:00