From 8bab93ae9872d2a421383fd5835a58ccc7c278cb Mon Sep 17 00:00:00 2001 From: kjuulh Date: Fri, 10 Jan 2025 09:11:02 +0100 Subject: [PATCH] chore: add stub for remote copier --- crates/voidpin/src/main.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/crates/voidpin/src/main.rs b/crates/voidpin/src/main.rs index b5b8b8c..6fe16d0 100644 --- a/crates/voidpin/src/main.rs +++ b/crates/voidpin/src/main.rs @@ -19,6 +19,15 @@ struct Command { enum Commands { Listen {}, Copy {}, + Remote { + #[command(subcommand)] + command: RemoteCommands, + }, +} + +#[derive(Subcommand)] +enum RemoteCommands { + Copy {}, } #[tokio::main] @@ -47,6 +56,9 @@ async fn main() -> anyhow::Result<()> { tracing::debug!(content = &input, "found content"); state.local_copier().copy(input.as_bytes()).await?; } + Commands::Remote { command } => match command { + RemoteCommands::Copy {} => todo!(), + }, _ => (), }