feat: fix compike, add license, desc
This commit is contained in:
@@ -3,6 +3,10 @@ name = "{{project_name}}"
|
||||
version = "0.0.1"
|
||||
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
||||
edition = "2018"
|
||||
{% if license != "None" -%}
|
||||
license = "{{license}}"
|
||||
{%- endif %}
|
||||
description = "{{description}}"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ use cmd::{Command, CommandError};
|
||||
|
||||
fn main() -> CommandError {
|
||||
let commands: Vec<Box<dyn Command>> = vec![
|
||||
Box::new(cmd_test::CommandImpl)
|
||||
Box::new(cmd_sample::CommandImpl)
|
||||
];
|
||||
let mut app = App::new(env!("CARGO_PKG_NAME"))
|
||||
.version(env!("CARGO_PKG_VERSION"))
|
||||
|
||||
Reference in New Issue
Block a user