style: code style
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use clap::{ ArgMatches, App, };
|
||||
use clap::{ ArgMatches, App };
|
||||
|
||||
pub type CommandError = Result<(), Box<dyn std::error::Error>>;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
use clap::{ App, Arg, ArgMatches, };
|
||||
use clap::{ App, Arg, ArgMatches };
|
||||
use crate::cmd::CommandError;
|
||||
|
||||
pub struct CommandDefault;
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
use std::fs::{ self, File, };
|
||||
use clap::{ Arg, ArgMatches, SubCommand, App, };
|
||||
use crate::cmd::{ Command, CommandError, };
|
||||
use std::fs::{ self, File };
|
||||
use clap::{ Arg, ArgMatches, SubCommand, App };
|
||||
use crate::cmd::{ Command, CommandError };
|
||||
|
||||
const CARGO_TOML_FILE: &str = "Cargo.toml";
|
||||
|
||||
const MAIN_RS: &str = include_str!("main.rs_template");
|
||||
const CMD_RS: &str = include_str!("cmd.rs");
|
||||
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");
|
||||
const MAIN_RS: &str = include_str!("main.rs_template");
|
||||
const CMD_RS: &str = include_str!("cmd.rs");
|
||||
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;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
use clap::{ ArgMatches, SubCommand, App, };
|
||||
use crate::cmd::{ Command, CommandError, };
|
||||
use clap::{ ArgMatches, SubCommand, App };
|
||||
use crate::cmd::{ Command, CommandError };
|
||||
|
||||
pub struct CommandSample;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user