From 86892f61a1bce1f855463477a278e24a41f8e9a7 Mon Sep 17 00:00:00 2001 From: Kemal Akkoyun Date: Thu, 26 Sep 2024 15:35:02 +0200 Subject: [PATCH] Address review comments: Optional RunCommand Signed-off-by: Kemal Akkoyun --- crates/uv/src/commands/project/run.rs | 4 ++-- crates/uv/src/lib.rs | 14 ++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/crates/uv/src/commands/project/run.rs b/crates/uv/src/commands/project/run.rs index 5747ac8fc06a..c68013a3c93f 100644 --- a/crates/uv/src/commands/project/run.rs +++ b/crates/uv/src/commands/project/run.rs @@ -53,7 +53,7 @@ use crate::settings::ResolverInstallerSettings; pub(crate) async fn run( project_dir: &Path, script: Option, - command: RunCommand, + command: Option, requirements: Vec, show_resolution: bool, locked: bool, @@ -721,7 +721,7 @@ pub(crate) async fn run( // Check if any run command is given. // If not, print the available scripts for the current interpreter. - if let RunCommand::Empty = command { + let Some(command) = command else { writeln!( printer.stdout(), "Provide a command or script to invoke with `uv run ` or `uv run