ref cmd_newcliapp
This commit is contained in:
@@ -2,8 +2,6 @@ use std::fs::{ self, File, };
|
|||||||
use clap::{ Arg, ArgMatches, SubCommand, App, };
|
use clap::{ Arg, ArgMatches, SubCommand, App, };
|
||||||
use crate::cmd::{ Command, CommandError, };
|
use crate::cmd::{ Command, CommandError, };
|
||||||
|
|
||||||
pub struct CommandNewCliApp;
|
|
||||||
|
|
||||||
const CARGO_TOML_FILE: &str = "Carto.toml";
|
const CARGO_TOML_FILE: &str = "Carto.toml";
|
||||||
|
|
||||||
const MAIN_RS: &str = include_str!("main.rs_template");
|
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 CMD_SAMPLE_RS: &str = include_str!("cmd_sample.rs");
|
||||||
const CARGO_TOML: &str = include_str!("Carto.toml_template");
|
const CARGO_TOML: &str = include_str!("Carto.toml_template");
|
||||||
|
|
||||||
|
pub struct CommandNewCliApp;
|
||||||
|
|
||||||
impl Command for CommandNewCliApp {
|
impl Command for CommandNewCliApp {
|
||||||
|
|
||||||
fn subcommand<'a>(&self) -> App<'a, 'a> {
|
fn subcommand<'a>(&self) -> App<'a, 'a> {
|
||||||
|
|||||||
Reference in New Issue
Block a user