Extract CLI logic to a child project

This commit is contained in:
timvisee 2018-03-08 23:02:06 +01:00
parent 2df0f8d077
commit 7a56dabd39
No known key found for this signature in database
GPG key ID: 109CBA0BF74036C2
11 changed files with 26 additions and 23 deletions

18
Cargo.lock generated
View file

@ -176,15 +176,6 @@ name = "fake-simd"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
[[package]]
name = "ffsend"
version = "0.1.0"
dependencies = [
"clap 2.31.1 (registry+https://github.com/rust-lang/crates.io-index)",
"ffsend-api 0.1.0",
"open 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "ffsend-api"
version = "0.1.0"
@ -203,6 +194,15 @@ dependencies = [
"url 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "ffsend-cli"
version = "0.1.0"
dependencies = [
"clap 2.31.1 (registry+https://github.com/rust-lang/crates.io-index)",
"ffsend-api 0.1.0",
"open 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "foreign-types"
version = "0.3.2"

View file

@ -1,15 +1,5 @@
[package]
name = "ffsend"
version = "0.1.0"
authors = ["timvisee <timvisee@gmail.com>"]
[[bin]]
name = "ffsend"
[workspace]
members = ["api"]
[dependencies]
clap = "2.31"
ffsend-api = { version = "*", path = "api" }
open = "1"
members = [
"api",
"cli",
]

13
cli/Cargo.toml Normal file
View file

@ -0,0 +1,13 @@
[package]
name = "ffsend-cli"
version = "0.1.0"
authors = ["timvisee <timvisee@gmail.com>"]
[[bin]]
path = "src/main.rs"
name = "ffsend"
[dependencies]
clap = "2.31"
ffsend-api = { version = "*", path = "../api" }
open = "1"