Refactor into library and add argument parsing

This commit is contained in:
ConnorSkees 2020-01-20 11:00:01 -05:00
parent 58ffa5baac
commit 058772edb4
3 changed files with 1293 additions and 1225 deletions

View File

@ -10,9 +10,22 @@ repository = "https://github.com/connorskees/grass"
authors = ["ConnorSkees <39542938+ConnorSkees@users.noreply.github.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "grass"
path = "src/main.rs"
required-features = ["commandline"]
[lib]
name = "grass"
path = "src/lib.rs"
edition = "2018"
[dependencies]
clap = { version = "2.33.0", optional = true }
[features]
default = ["commandline"]
commandline = ["clap"]
[dev-dependencies]
# test imports

1217
src/lib.rs Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff