This commit is contained in:
Ilya Zlobintsev
2020-10-17 07:38:28 +03:00
commit c482961c49
10 changed files with 251 additions and 0 deletions

11
cli/Cargo.toml Normal file
View File

@@ -0,0 +1,11 @@
[package]
name = "cli"
version = "0.1.0"
authors = ["Ilya Zlobintsev <ilya.zl@protonmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
daemon = { path = "../daemon" }
structopt = "0.3"

15
cli/src/main.rs Normal file
View File

@@ -0,0 +1,15 @@
use structopt::StructOpt;
#[derive(StructOpt)]
#[structopt(rename_all = "lower")]
enum Opt {
///Get information about the GPU.
Info,
}
fn main() {
let opt = Opt::from_args();
match opt {
Opt::Info => daemon::get_info(),
}
}