rocket-cli 0.0.1

A fast, ergonomic command-line interface (CLI) for scaffolding and running [Rocket](https://rocket.rs) web applications in Rust. Spin up production-ready APIs in seconds with idiomatic project structure and database-backed templates.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub mod common;
pub mod minimal;
pub mod mongo_db;
pub mod postgres;

use std::path::PathBuf;

pub fn load_template_files(template: &str) -> Option<Vec<(PathBuf, &'static str)>> {
    match template {
        "minimal" => Some(minimal::manifest::load_template()),
        "mongodb" => Some(mongo_db::manifest::load_template()),
        "postgres" => Some(postgres::manifest::load_template()),
        _ => None,
    }
}