chore(cli): Return Future and make the function sync CommandRunner:run

Signed-off-by: Awiteb <a@4rs.nl>
This commit is contained in:
Awiteb
2025-06-04 22:04:14 +00:00
parent ef8d6c1c4f
commit 16e6300c81

View File

@@ -20,5 +20,5 @@ use crate::error::N34Result;
/// A trait defining the interface for command runners in the CLI.
pub trait CommandRunner {
/// Executes the command and returns a Result indicating success or failure.
async fn run(self, options: CliOptions) -> N34Result<()>;
fn run(self, options: CliOptions) -> impl Future<Output = N34Result<()>> + Send;
}