mirror of
https://github.com/ilya-zlobintsev/LACT.git
synced 2026-08-19 01:14:43 -05:00
chore: require explicit gpu id arg for detach
This commit is contained in:
@@ -235,7 +235,11 @@ pub async fn set_auto_switch(
|
||||
}
|
||||
|
||||
pub async fn detach(ctx: CliContext<'_>) -> Result<()> {
|
||||
let id = ctx.current_gpu_id().await?;
|
||||
let id = ctx
|
||||
.args
|
||||
.gpu_id
|
||||
.as_deref()
|
||||
.context("`--gpu-id` must be passed explicitly for reattaching")?;
|
||||
let name = ctx.name_for_id(&id).await?;
|
||||
ctx.client.detach(&id).await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user