Skip to main content

entrenar/config/cli/
mod.rs

1//! CLI argument parsing and validation
2//!
3//! This module provides the command-line interface for entrenar training.
4//!
5//! # Usage
6//!
7//! ```bash
8//! entrenar train config.yaml
9//! entrenar train config.yaml --output-dir ./checkpoints
10//! entrenar train config.yaml --resume checkpoint.json
11//! entrenar validate config.yaml
12//! entrenar info config.yaml
13//! ```
14
15mod core;
16mod extended;
17mod init;
18mod quant_merge;
19mod research;
20mod types;
21
22#[cfg(test)]
23mod property_tests;
24#[cfg(test)]
25mod tests;
26
27// Re-export all public types
28pub use core::{apply_overrides, parse_args, Cli, Command, InfoArgs, TrainArgs, ValidateArgs};
29pub use extended::{
30    AuditArgs, BenchArgs, CompletionArgs, ExperimentsArgs, ExperimentsCommand, FinetuneArgs,
31    FinetuneCommand, InspectArgs, MonitorArgs, PublishArgs,
32};
33pub use init::{InitArgs, InitTemplate, TrainingMethod};
34pub use quant_merge::{MergeArgs, MergeMethod, QuantMethod, QuantizeArgs};
35pub use research::{
36    BundleArgs, CiteArgs, DepositArgs, ExportArgs, PreregisterArgs, ResearchArgs, ResearchCommand,
37    ResearchInitArgs, VerifyArgs,
38};
39pub use types::{
40    ArchiveProviderArg, ArtifactTypeArg, AuditType, CitationFormat, ExportFormat, InspectMode,
41    LicenseArg, OutputFormat, ShellType,
42};