mirror of
https://github.com/alphaXiv/OpenResearch.git
synced 2026-11-12 10:05:24 +08:00
lint
This commit is contained in:
Generated
+1
-1
@@ -675,7 +675,7 @@ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
|
||||
|
||||
[[package]]
|
||||
name = "openresearch-cli"
|
||||
version = "0.1.7"
|
||||
version = "0.1.8"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"clap",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "openresearch-cli"
|
||||
version = "0.1.7"
|
||||
version = "0.1.8"
|
||||
edition = "2021"
|
||||
description = "OpenResearch CLI (orx) — Rust port"
|
||||
repository = "https://github.com/alphaXiv/openresearch-cli"
|
||||
|
||||
+5
-1
@@ -319,7 +319,11 @@ async fn desc(
|
||||
/// `orx exp run <expId> …` — launch a run on a new instance or existing sandbox.
|
||||
async fn launch(creds: &crate::config::Credentials, args: ExpRunArgs) -> Result<()> {
|
||||
// Resolve the target: exactly one of --sandbox, --gpu, or --cpu.
|
||||
let selectors = [args.sandbox.is_some(), args.gpu.is_some(), args.cpu.is_some()];
|
||||
let selectors = [
|
||||
args.sandbox.is_some(),
|
||||
args.gpu.is_some(),
|
||||
args.cpu.is_some(),
|
||||
];
|
||||
let chosen = selectors.iter().filter(|x| **x).count();
|
||||
if chosen > 1 {
|
||||
return Err(anyhow!("Pass exactly one of --sandbox, --gpu, or --cpu."));
|
||||
|
||||
Reference in New Issue
Block a user