Add top-level paseo archive as alias for paseo agent archive

This commit is contained in:
Mohamed Boudra
2026-03-25 17:46:32 +07:00
parent a65f4c1465
commit 5567652c6c
3 changed files with 15 additions and 7 deletions
+2 -6
View File
@@ -1,6 +1,6 @@
import { Command } from "commander";
import { runModeCommand } from "./mode.js";
import { runArchiveCommand } from "./archive.js";
import { addArchiveOptions, runArchiveCommand } from "./archive.js";
import { addDeleteOptions, runDeleteCommand } from "./delete.js";
import { addLsOptions, runLsCommand } from "./ls.js";
import { addRunOptions, runRunCommand } from "./run.js";
@@ -69,11 +69,7 @@ export function createAgentCommand(): Command {
).action(withOutput(runModeCommand));
addJsonAndDaemonHostOptions(
agent
.command("archive")
.description("Archive an agent (soft-delete)")
.argument("<id>", "Agent ID, prefix, or name")
.option("--force", "Force archive running agent (interrupts active run first)"),
addArchiveOptions(agent.command("archive")),
).action(withOutput(runArchiveCommand));
addJsonAndDaemonHostOptions(