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 compiler_facts;
16mod coverage;
17mod dispatch;
18mod find;
19mod impact;
20mod import_edges;
21mod read;
22mod refs;
23mod root;
24
25pub use dispatch::dispatch;
26pub(crate) use root::require_repo;
27
28#[cfg(test)]
29mod tests;