forked from navos/sheepd
✨ cli + user api
This commit is contained in:
parent
46cf2f4572
commit
b010027549
12 changed files with 504 additions and 25 deletions
18
src/sheepctl.rs
Normal file
18
src/sheepctl.rs
Normal file
|
@ -0,0 +1,18 @@
|
|||
use sheepctl_core::{
|
||||
args::{DeviceCommands, SheepctlArgs, SheepctlCommand},
|
||||
cmd::{list_devices, login},
|
||||
};
|
||||
|
||||
mod api;
|
||||
mod sheepctl_core;
|
||||
|
||||
fn main() {
|
||||
let args: SheepctlArgs = argh::from_env();
|
||||
|
||||
match args.command {
|
||||
SheepctlCommand::Device(device_command) => match device_command.command {
|
||||
DeviceCommands::List(list_devices_command) => list_devices(list_devices_command),
|
||||
},
|
||||
SheepctlCommand::Login(login_command) => login(login_command),
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue