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
56
57
58
59
//! Project initialization operations
//!
//! This module provides functionality for initializing new ggen projects and
//! validating existing project structures.
//!
//! ## Features
//!
//! - **Project Initialization**: Create new project structure with directories
//! - **Project Validation**: Check if a path is a valid project
//! - **Directory Creation**: Set up standard project directories (src, tests)
//!
//! ## Examples
//!
//! ### Initializing a New Project
//!
//! ```rust,no_run
//! use ggen_domain::project::init::init_project;
//! use std::path::Path;
//!
//! # async fn example() -> anyhow::Result<()> {
//! init_project(Path::new("my-new-project"), "my-new-project").await?;
//! # Ok(())
//! # }
//! ```
//!
//! ### Validating a Project
//!
//! ```rust,no_run
//! use ggen_domain::project::init::is_project;
//! use std::path::Path;
//!
//! if is_project(Path::new("my-project")) {
//! println!("Valid project!");
//! }
//! ```
use ;
use Path;
/// Initialize a new project
pub async
/// Check if path is a valid project