LJXKGMZ7GRDSSBECI4YTBEO6CBSBLSH3GMUWETDS3BFCBHD7GNXQC
K76L4UCUODWSMCH6TZRX2HKA6INLVLSJ5Y7QIF7KL7YZRCISCHYAC
WGL2JNW5KARFE464BVXWDKMZXPRESUM4EFP2ZJEY35DHCZ6ACB4AC
#[clap(short, long)] author: Option<String>, name: String, }, Init {
#[clap(short, long)]
author: Option<String>,
name: String,
},
Init {
Commands::Init { author, name } => { let author = if let Some(a) = author { a } else { //TODO: Attempt to load from config, or else fail String::new() }; core::init(author, name); }
Commands::Init { author, name } => {
let author = if let Some(a) = author {
a
} else {
//TODO: Attempt to load from config, or else fail
String::new()
};
core::init(author, name);
}
pub(crate) fn new(author: String, name: String, version: String) -> Self {
pub(crate) fn new(author: String, name: String) -> Self {
version: Version::from_str(&version).unwrap(),
version: Version::new(0, 1, 0),
use self::model::Mod;
let mrvnfile = Mod::new(author, name, "0.1.0".to_owned()); mrvnfile.save().unwrap();
let mrvnfile = Mod::new(author, name, "0.1.0".to_owned());
mrvnfile.save().unwrap();
let mrvn = Mod::new(author, name); mrvn.save();
let mrvn = Mod::new(author, name);
mrvn.save();
pub fn init() {}
pub fn init(author: String, name: String) { let root = std::env::current_dir().unwrap(); init_mod(&root, &name); let mrvn = Mod::new(author, name); mrvn.save();}
pub fn init(author: String, name: String) {
let root = std::env::current_dir().unwrap();
init_mod(&root, &name);