refactor(g3-cli): extract commands module and fix test organization

- Extract handle_command() from interactive.rs to new commands.rs module
  (320 lines, 15 match arms for /help, /compact, /thinnify, etc.)
- Fix orphaned tests in completion.rs that were outside mod tests block
- Add #[allow(dead_code)] to with_include_prompt_filename() (used in tests)
- interactive.rs reduced from 595 to 290 lines

Agent: fowler
This commit is contained in:
Dhanji R. Prasanna
2026-01-20 14:30:50 +05:30
parent 710c54105b
commit dec22f5e58
6 changed files with 336 additions and 309 deletions

View File

@@ -64,6 +64,7 @@ impl LoadedContent {
}
/// Create with explicit include prompt filename.
#[allow(dead_code)] // Used in tests, may be useful for future callers
pub fn with_include_prompt_filename(mut self, filename: Option<String>) -> Self {
if self.include_prompt_filename.is_some() {
self.include_prompt_filename = filename;