vika_cli/lib.rs
1//! # vika-cli
2//!
3//! A production-grade Rust CLI tool that generates TypeScript typings, Zod schemas,
4//! and Fetch-based API clients from Swagger/OpenAPI specifications.
5//!
6//! ## Example
7//!
8//! ```no_run
9//! use vika_cli::Config;
10//!
11//! // Load configuration
12//! let config = vika_cli::config::loader::load_config().unwrap();
13//! ```
14
15pub mod cache;
16pub mod cli;
17pub mod commands;
18pub mod config;
19pub mod error;
20pub mod formatter;
21pub mod generator;
22pub mod progress;
23pub mod specs;
24pub mod templates;
25
26/// Main configuration structure for vika-cli.
27///
28/// This struct represents the `.vika.json` configuration file.
29///
30/// # Example
31///
32/// ```no_run
33/// use vika_cli::Config;
34///
35/// let config = vika_cli::config::loader::load_config().unwrap();
36/// println!("Root directory: {}", config.root_dir);
37/// ```
38pub use config::model::Config;
39
40/// Result type alias for vika-cli operations.
41pub type Result<T> = std::result::Result<T, VikaError>;
42
43/// Main error type for vika-cli.
44///
45/// All errors in vika-cli are wrapped in this enum, which provides
46/// structured error handling with context.
47pub use error::VikaError;