1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use clap::Subcommand;

#[derive(Subcommand)]
pub enum InitCmd {
    /// Create a module
    Module
    // TODO: Add repository builder
    // Repository
}

pub fn handle(cmd: InitCmd) {
    match cmd {
        // Initialize module
        InitCmd::Module => {
            init_module();
        }
    }
}

pub fn init_module() {
    println!("Create new source")
}