Files
OneCAD-Draft/src/lib.rs
T
Hakan SevenandClaude Opus 4.8 79bb1d67b1 feat(cli): full command-line interface via clap
Replace the ad-hoc `--serve` arg sniff with a clap-parsed CLI:

- positional <file> to open at startup (also the OS file-association path)
- --new, --read-only, --backend, --safe-mode/--no-gpu
- --serve/--port (headless JSON automation, unchanged behaviour)
- --export IN OUT (headless format convert via the automation load/save infra)
- --script FILE (run command lines at startup)
- --log/RUST_LOG, plus --version/--help for free

GUI-only options pass to app::boot through a OnceLock config; read-only
gates the save paths. The web build skips parsing (no args).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-20 13:59:20 +03:00

19 lines
295 B
Rust

#![allow(non_snake_case)]
pub mod app;
#[cfg(not(target_arch = "wasm32"))]
pub mod cli;
pub mod command;
pub mod entities;
pub mod io;
pub mod linetypes;
pub mod modules;
pub mod plugin;
pub mod patterns;
pub mod scene;
pub mod snap;
pub mod ui;
pub mod par;
pub mod sys;
pub mod update_check;