@miosa/cli 1.0.63 → 1.0.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miosa/cli",
3
- "version": "1.0.63",
3
+ "version": "1.0.65",
4
4
  "description": "MIOSA platform CLI — projects, sandboxes, deploys, databases, more",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"machines.d.ts","sourceRoot":"","sources":["../../src/commands/machines.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAezC,wBAAgB,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAsC/C"}
@@ -1,29 +0,0 @@
1
- import { addDataOption, deleteAndPrint, enc, getAndPrint, postAndPrint, resourceCommands, runAction, } from "./enterprise-util.js";
2
- const actions = ["start", "stop", "restart", "clone", "resize", "move"];
3
- export function register(program) {
4
- resourceCommands({
5
- program,
6
- command: "machines",
7
- description: "Manage persistent machines",
8
- route: "/computers",
9
- itemName: "machine-id",
10
- actions,
11
- });
12
- const machines = program.commands.find((cmd) => cmd.name() === "machines");
13
- addDataOption(machines
14
- .command("exec <machine-id>")
15
- .description("Run a command on a machine via the raw exec API"))
16
- .option("--json", "Output as JSON")
17
- .action((id, opts) => runAction(() => postAndPrint(`/computers/${enc(id)}/exec`, opts, {})));
18
- machines
19
- .command("logs <machine-id>")
20
- .description("Show machine logs")
21
- .option("--json", "Output as JSON")
22
- .action((id, opts) => runAction(() => getAndPrint(`/computers/${enc(id)}/logs`, opts)));
23
- machines
24
- .command("delete-snapshot <machine-id> <snapshot-id>")
25
- .description("Delete a machine snapshot")
26
- .option("--json", "Output as JSON")
27
- .action((id, sid, opts) => runAction(() => deleteAndPrint(`/computers/${enc(id)}/snapshots/${enc(sid)}`, opts)));
28
- }
29
- //# sourceMappingURL=machines.js.map
@@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