kmmp-project-manager 0.1.0

kmmp-project-manager is a Rust crate for Kotlin Multiplatform (KMP) projects, offering a lightweight alternative to Android Studio. It provides tools for project creation, structure management, build automation, code generation, IDE integration, dependency management, and project configuration.
Documentation
use std::fs::{
    create_dir,
    create_dir_all
};

/// Represents the trait to use for generating the parts of a Kotlin Multiplatform (KMP) project.
///
/// This trait provides a common interface for generating various parts of a KMP project, such as
/// source code, project files, configurations, and more.
///
/// To implement this trait, define the `generate` method and provide the necessary logic to generate
/// the desired parts of the project.
#[cfg(feature = "generate")]
pub trait Generate {
    /// Generates the parts of the KMP project.
    ///
    /// # Arguments
    ///
    /// * `directory` - The root directory where the generated parts will be placed.
    fn generate(&self,directory : &str);
}

#[cfg(feature = "generate")]
#[deprecated(note = "maybe should use directory create_dir")]
pub(super) fn create_directory(directory: &str){
    create_dir(&directory).expect("Creating Directory Failed");
}

#[cfg(feature = "generate")]
#[deprecated(note = "maybe should use directory create_dir")]
pub(super) fn create_nested_directory(directory: &str) {
    create_dir_all(&directory).expect("Creating Nested Directory Failed");
}