chore: add stub for remote copier

This commit is contained in:
Kasper Juul Hermansen 2025-01-10 09:11:02 +01:00
parent 327fd3098a
commit 8bab93ae98
Signed by: kjuulh
SSH Key Fingerprint: SHA256:RjXh0p7U6opxnfd3ga/Y9TCo18FYlHFdSpRIV72S/QM

View File

@ -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!(),
},
_ => (), _ => (),
} }