chore: add stub for remote copier
This commit is contained in:
parent
327fd3098a
commit
8bab93ae98
@ -19,6 +19,15 @@ struct Command {
|
|||||||
enum Commands {
|
enum Commands {
|
||||||
Listen {},
|
Listen {},
|
||||||
Copy {},
|
Copy {},
|
||||||
|
Remote {
|
||||||
|
#[command(subcommand)]
|
||||||
|
command: RemoteCommands,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Subcommand)]
|
||||||
|
enum RemoteCommands {
|
||||||
|
Copy {},
|
||||||
}
|
}
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
@ -47,6 +56,9 @@ async fn main() -> anyhow::Result<()> {
|
|||||||
tracing::debug!(content = &input, "found content");
|
tracing::debug!(content = &input, "found content");
|
||||||
state.local_copier().copy(input.as_bytes()).await?;
|
state.local_copier().copy(input.as_bytes()).await?;
|
||||||
}
|
}
|
||||||
|
Commands::Remote { command } => match command {
|
||||||
|
RemoteCommands::Copy {} => todo!(),
|
||||||
|
},
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user