🎉 init
This commit is contained in:
commit
812c4adb15
16 changed files with 4631 additions and 0 deletions
23
src/sheepd_core/args.rs
Normal file
23
src/sheepd_core/args.rs
Normal file
|
@ -0,0 +1,23 @@
|
|||
use argh::FromArgs;
|
||||
|
||||
#[derive(FromArgs)]
|
||||
/// Sheep Daemon
|
||||
pub struct SheepdArgs {
|
||||
#[argh(subcommand)]
|
||||
pub command: Option<SheepdCommand>,
|
||||
}
|
||||
|
||||
#[derive(FromArgs, PartialEq, Debug)]
|
||||
#[argh(subcommand)]
|
||||
pub enum SheepdCommand {
|
||||
Join(JoinCommand),
|
||||
}
|
||||
|
||||
#[derive(FromArgs, PartialEq, Debug)]
|
||||
/// Join a herd
|
||||
#[argh(subcommand, name = "join")]
|
||||
pub struct JoinCommand {
|
||||
#[argh(positional)]
|
||||
/// home server domain
|
||||
pub home: String,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue