1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! Project initialization scaffolding for Spikard
//!
//! This module provides the foundation for the `spikard init` command, enabling users
//! to bootstrap new Spikard projects with language-specific structure, configuration,
//! and example handlers.
//!
//! # Architecture
//!
//! The initialization system follows a layered design:
//!
//! - **`ProjectScaffolder`**: Language-agnostic trait defining what files and structure
//! are needed for a new project.
//! - **`InitEngine`**: Orchestrates the scaffolding process, validates inputs, and
//! manages file creation.
//! - **`ScaffoldedFile`**: Represents a file to be written with path and content.
//!
//! # Example
//!
//! ```ignore
//! use spikard_cli::init::{InitRequest, InitEngine};
//! use spikard_cli::codegen::TargetLanguage;
//! use std::path::PathBuf;
//!
//! let request = InitRequest {
//! project_name: "my_api".to_string(),
//! language: TargetLanguage::Python,
//! project_dir: PathBuf::from("."),
//! schema_path: None,
//! };
//!
//! let response = InitEngine::execute(request)?;
//! println!("Created {} files", response.files_created.len());
//! for step in response.next_steps {
//! println!(" - {}", step);
//! }
//! # Ok::<(), anyhow::Error>(())
//! ```
pub use ElixirScaffolder;
pub use ;
pub use PhpScaffolder;
pub use PythonScaffolder;
pub use RubyScaffolder;
pub use RustScaffolder;
pub use ;
pub use TypeScriptScaffolder;