pub fn init(opts: InitOptions) -> Result<()> {
    let project_type_display =
        opts.project_type[0..1].to_uppercase() + &opts.project_type[1..] + " project";
    match opts.project_type {
        "rust" => init_rust(&opts),
        _ => unreachable!(),
    }?;
    if opts.verbosity > Verbosity::Quiet {
        print_status_in(Status::Created, project_type_display, &opts.dest);
    }
    Ok(())
}
/// Creates an Oasis project in a directory.
Creates an Oasis project in a directory.
Creates an Oasis project in a directory .
pub fn init(opts: InitOptions) -> Result<()> {
    let project_type_display =
        opts.project_type[0..1].to_uppercase() + &opts.project_type[1..] + " project";
    match opts.project_type {
        "rust" => init_rust(&opts),
        _ => unreachable!(),
    }?;
    if opts.verbosity > Verbosity::Quiet {
        print_status_in(Status::Created, project_type_display, &opts.dest);
    }
    Ok(())
}
pub fn init ( opts : InitOptions ) -> Result < ( ) > { let project_type_display = opts . project_type [ 0 .. 1 ] . to_uppercase ( ) + & opts . project_type [ 1 .. ] + " " ; match opts . project_type { " " => init_rust ( & opts ) , _ => unreachable ! ( ) , } ? ; if opts . verbosity > Verbosity :: Quiet { print_status_in ( Status :: Created , project_type_display , & opts . dest ) ; } Ok ( ( ) ) }
Creates an Oasis project in a directory.
Creates an Oasis project in a directory .
opts
InitOptions
opts
InitOptions