Skip to main content

devscout_rs/
cli.rs

1// Arg parsing + dispatch for the subcommand set. Dispatch is hand-rolled; no
2// flag-parsing dependency is pulled in until a subcommand needs real flag
3// parsing.
4//
5// Alongside the user-facing verbs (README.md), four dev/diagnostic subcommands
6// are wired here and nowhere else: `noop` (cold-start floor), `parse` and
7// `spans` (seed AST dumps), and `extract-dump` (full-extraction JSON).
8//
9// `init` dispatches through `initcmd::cmd_init_full`, NOT `cmd_init` directly --
10// see initcmd.rs for why that split is load-bearing rather than stylistic.
11
12mod admin;
13mod answer;
14mod args;
15mod coverage;
16mod dispatch;
17mod find;
18mod impact;
19mod import_edges;
20mod read;
21mod refs;
22mod root;
23
24pub use dispatch::dispatch;
25pub(crate) use root::require_repo;
26
27#[cfg(test)]
28mod tests;