@miosa/cli 1.0.63 → 1.0.64
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/README.md +20 -0
- package/dist/bin/miosa.js +1 -0
- package/dist/bin/miosa.js.map +1 -1
- package/dist/commands/capabilities.d.ts.map +1 -1
- package/dist/commands/capabilities.js +54 -0
- package/dist/commands/capabilities.js.map +1 -1
- package/dist/commands/{machines.d.ts → devices.d.ts} +1 -1
- package/dist/commands/devices.d.ts.map +1 -0
- package/dist/commands/devices.js +283 -0
- package/dist/commands/devices.js.map +1 -0
- package/dist/commands/sandbox.d.ts.map +1 -1
- package/dist/commands/sandbox.js +37 -6
- package/dist/commands/sandbox.js.map +1 -1
- package/package.json +1 -1
- package/dist/commands/machines.d.ts.map +0 -1
- package/dist/commands/machines.js +0 -29
- package/dist/commands/machines.js.map +0 -1
- package/dist/miosa-linux-x64 +0 -0
package/package.json
CHANGED
|
@@ -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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"machines.js","sourceRoot":"","sources":["../../src/commands/machines.ts"],"names":[],"mappings":"AACA,OAAO,EACL,aAAa,EACb,cAAc,EACd,GAAG,EACH,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,SAAS,GAGV,MAAM,sBAAsB,CAAC;AAE9B,MAAM,OAAO,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAEjF,MAAM,UAAU,QAAQ,CAAC,OAAgB;IACvC,gBAAgB,CAAC;QACf,OAAO;QACP,OAAO,EAAE,UAAU;QACnB,WAAW,EAAE,4BAA4B;QACzC,KAAK,EAAE,YAAY;QACnB,QAAQ,EAAE,YAAY;QACtB,OAAO;KACR,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,UAAU,CAAC,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