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 templates;
24
25/// Main configuration structure for vika-cli.
26///
27/// This struct represents the `.vika.json` configuration file.
28///
29/// # Example
30///
31/// ```no_run
32/// use vika_cli::Config;
33///
34/// let config = vika_cli::config::loader::load_config().unwrap();
35/// println!("Root directory: {}", config.root_dir);
36/// ```
37pub use config::model::Config;
38
39/// Result type alias for vika-cli operations.
40pub type Result<T> = std::result::Result<T, VikaError>;
41
42/// Main error type for vika-cli.
43///
44/// All errors in vika-cli are wrapped in this enum, which provides
45/// structured error handling with context.
46pub use error::VikaError;