orcs 0.0.8

Microservices monorepo orchestration tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{Error, Project};
use clap::ArgMatches;
use tracing::{info, instrument};

#[instrument(skip(subcommand))]
pub fn init(project_path: &str, subcommand: &ArgMatches) -> Result<(), Error> {
    info!("Initialize project");
    let template = subcommand.value_of("template");

    match subcommand.value_of("name") {
        Some(name) => Project::create(name, template),
        None => Project::create(project_path, template),
    }
}