ref cmd_newcliapp

This commit is contained in:
2020-06-14 00:15:56 +08:00
parent dcb8c4a75a
commit 9b050fd13b

View File

@@ -2,8 +2,6 @@ use std::fs::{ self, File, };
use clap::{ Arg, ArgMatches, SubCommand, App, };
use crate::cmd::{ Command, CommandError, };
pub struct CommandNewCliApp;
const CARGO_TOML_FILE: &str = "Carto.toml";
const MAIN_RS: &str = include_str!("main.rs_template");
@@ -12,6 +10,8 @@ const CMD_DEFAULT_RS: &str = include_str!("cmd_default.rs");
const CMD_SAMPLE_RS: &str = include_str!("cmd_sample.rs");
const CARGO_TOML: &str = include_str!("Carto.toml_template");
pub struct CommandNewCliApp;
impl Command for CommandNewCliApp {
fn subcommand<'a>(&self) -> App<'a, 'a> {