refactor(core): reorganize module structure
This commit is contained in:
parent
59ab96be98
commit
a6c1863f57
22 changed files with 231 additions and 164 deletions
|
|
@ -4,9 +4,9 @@
|
|||
// CLI test harness for the noctua_core document foundation.
|
||||
|
||||
use clap::{ArgGroup, Parser};
|
||||
use noctua_core::document::command::SessionCommand;
|
||||
use noctua_core::document::manager::{DocumentManager, DocumentState};
|
||||
use noctua_core::document::session::CollectionKind;
|
||||
use noctua_core::document::session::command::SessionCommand;
|
||||
use noctua_core::document::session::data::CollectionKind;
|
||||
use std::path::PathBuf;
|
||||
|
||||
// ── ANSI helpers ──
|
||||
|
|
@ -139,7 +139,7 @@ fn main() {
|
|||
|
||||
exec(
|
||||
&mut mgr,
|
||||
&format!("New session '{session_name}'"),
|
||||
&format!("New browser session '{session_name}'"),
|
||||
SessionCommand::New {
|
||||
name: session_name.clone(),
|
||||
kind: CollectionKind::DirectoryBrowser,
|
||||
|
|
@ -154,7 +154,7 @@ fn main() {
|
|||
);
|
||||
exec(
|
||||
&mut mgr,
|
||||
&format!("Scan directory {}", dir.display()),
|
||||
&format!("Add directory {}", dir.display()),
|
||||
SessionCommand::AddDirectory { dir },
|
||||
);
|
||||
exec(
|
||||
|
|
@ -186,7 +186,7 @@ fn main() {
|
|||
);
|
||||
exec(
|
||||
&mut mgr,
|
||||
&format!("Scan directory {}", path.display()),
|
||||
&format!("Add directory {}", path.display()),
|
||||
SessionCommand::AddDirectory { dir: path },
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue