feat: fix compike, add license, desc

This commit is contained in:
2020-11-21 23:18:26 +08:00
parent 9ce44ce6d5
commit 221cecd8f8
4 changed files with 23 additions and 1 deletions

View File

@@ -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

View File

@@ -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"))