feat: add authors, bin
This commit is contained in:
@@ -22,6 +22,16 @@ default = "my-cli"
|
|||||||
prompt = "What's the name of the executable?"
|
prompt = "What's the name of the executable?"
|
||||||
validation = "^([a-zA-Z][a-zA-Z-_]+)$"
|
validation = "^([a-zA-Z][a-zA-Z-_]+)$"
|
||||||
|
|
||||||
|
[[variables]]
|
||||||
|
name = "author"
|
||||||
|
default = "No One"
|
||||||
|
prompt = "What is your name?"
|
||||||
|
|
||||||
|
[[variables]]
|
||||||
|
name = "email"
|
||||||
|
default = "no@example.com"
|
||||||
|
prompt = "What is your email?"
|
||||||
|
|
||||||
[[variables]]
|
[[variables]]
|
||||||
name = "license"
|
name = "license"
|
||||||
default = "MIT"
|
default = "MIT"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "{{project_name}}"
|
name = "{{project_name}}"
|
||||||
version = "0.0.1"
|
version = "0.0.1"
|
||||||
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
authors = ["{{author}} <{{email}}>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
{% if license != "None" -%}
|
{% if license != "None" -%}
|
||||||
license = "{{license}}"
|
license = "{{license}}"
|
||||||
@@ -10,6 +10,10 @@ description = "{{description}}"
|
|||||||
|
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "{{bin}}"
|
||||||
|
path = "src/main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = "2.33"
|
clap = "2.33"
|
||||||
toml = "0.5"
|
toml = "0.5"
|
||||||
|
|||||||
Reference in New Issue
Block a user