1
0
Fork 0
forked from navos/sheepd

cli + user api

This commit is contained in:
JMARyA 2025-05-02 12:53:28 +02:00
parent 46cf2f4572
commit b010027549
12 changed files with 504 additions and 25 deletions

18
src/sheepctl.rs Normal file
View 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),
}
}