@akala/pm 15.2.7 → 15.2.9
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/changelog.md +3 -2
- package/cli-commands.json +59 -59
- package/commands.json +61 -55
- package/dist/esm/akala.mjs +1 -1
- package/dist/esm/akala.mjs.map +1 -1
- package/dist/esm/cli-commands/link.js +1 -1
- package/dist/esm/cli-commands/link.js.map +1 -1
- package/dist/esm/cli-commands/run.js +2 -2
- package/dist/esm/cli-commands/run.js.map +1 -1
- package/dist/esm/cli-commands/start.js +1 -1
- package/dist/esm/cli-commands/start.js.map +1 -1
- package/dist/esm/cli-container.js +1 -1
- package/dist/esm/cli-container.js.map +1 -1
- package/dist/esm/commands/$init.js +2 -2
- package/dist/esm/commands/$init.js.map +1 -1
- package/dist/esm/container.js +1 -1
- package/dist/esm/container.js.map +1 -1
- package/dist/esm/fork.js +1 -1
- package/dist/esm/fork.js.map +1 -1
- package/dist/esm/runtimes/child_process.js +2 -1
- package/dist/esm/runtimes/child_process.js.map +1 -1
- package/dist/esm/standalone.js +1 -1
- package/dist/esm/standalone.js.map +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/akala.mts +1 -1
- package/src/cli-commands/connect.json +3 -3
- package/src/cli-commands/discover.json +3 -3
- package/src/cli-commands/install.json +3 -3
- package/src/cli-commands/link.json +5 -5
- package/src/cli-commands/link.ts +1 -1
- package/src/cli-commands/log.json +3 -3
- package/src/cli-commands/map.json +5 -5
- package/src/cli-commands/run.json +2 -2
- package/src/cli-commands/run.ts +2 -2
- package/src/cli-commands/start.json +2 -2
- package/src/cli-commands/start.ts +1 -1
- package/src/cli-commands/uninstall.json +3 -3
- package/src/cli-commands/update.json +3 -3
- package/src/cli-commands/version.json +7 -7
- package/src/cli-container.ts +1 -1
- package/src/commands/$init.json +1 -1
- package/src/commands/$init.ts +2 -2
- package/src/commands/bridge.json +4 -4
- package/src/commands/proxy.json +4 -4
- package/src/commands/ready.json +2 -2
- package/src/commands/reload-metadata.json +3 -3
- package/src/commands/restart.json +10 -10
- package/src/commands/start.json +13 -13
- package/src/commands/status.json +6 -6
- package/src/commands/stop.json +5 -5
- package/src/container.ts +1 -1
- package/src/fork.ts +1 -1
- package/src/runtimes/child_process.ts +2 -1
- package/src/standalone.ts +1 -1
- package/src/test/pwet.json +2 -2
- package/test.json +5 -5
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"pm": "dist/esm/cli.js",
|
5
5
|
"pm-fork": "dist/esm/fork.js"
|
6
6
|
},
|
7
|
-
"version": "15.2.
|
7
|
+
"version": "15.2.9",
|
8
8
|
"scripts": {
|
9
9
|
"test": "echo 1",
|
10
10
|
"generate": "ac generate dist/esm/commands commands.json --name pm && ac generate dist/esm/cli-commands cli-commands.json --name pm",
|
@@ -29,18 +29,18 @@
|
|
29
29
|
"src/fork.ts"
|
30
30
|
],
|
31
31
|
"dependencies": {
|
32
|
-
"@akala/cli": "^5.9.
|
33
|
-
"@akala/commands": "^
|
34
|
-
"@akala/config": "^6.0.
|
35
|
-
"@akala/core": "^39.
|
36
|
-
"@akala/json-rpc-ws": "^11.0.
|
32
|
+
"@akala/cli": "^5.9.3",
|
33
|
+
"@akala/commands": "^16.0.0",
|
34
|
+
"@akala/config": "^6.0.74",
|
35
|
+
"@akala/core": "^39.4.0",
|
36
|
+
"@akala/json-rpc-ws": "^11.0.82",
|
37
37
|
"reflect-metadata": "^0.2.2",
|
38
38
|
"source-map-support": "^0.5.21"
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
41
41
|
"@types/debug": "^4.1.12",
|
42
42
|
"@types/mock-require": "^3.0.0",
|
43
|
-
"@types/node": "^22.15.
|
43
|
+
"@types/node": "^22.15.29",
|
44
44
|
"@types/source-map-support": "^0.5.10",
|
45
45
|
"@types/ws": "^8.18.1",
|
46
46
|
"typescript": "^5.8.3"
|
package/src/akala.mts
CHANGED
@@ -41,7 +41,7 @@ if (process.connected)
|
|
41
41
|
|
42
42
|
return {
|
43
43
|
processor: new Processors.JsonRpc(connection),
|
44
|
-
getMetadata: () => new Promise<Metadata.Container>((resolve, reject) => connection.sendMethod<any, any>('$metadata', {
|
44
|
+
getMetadata: () => new Promise<Metadata.Container>((resolve, reject) => connection.sendMethod<any, any>('$metadata', { params: true }, (err, metadata) =>
|
45
45
|
typeof (err) == 'undefined' ? resolve(metadata) : reject(err)
|
46
46
|
))
|
47
47
|
};
|
@@ -2,8 +2,8 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
|
3
3
|
"": {
|
4
4
|
"inject": [
|
5
|
-
"
|
6
|
-
"
|
5
|
+
"params.0",
|
6
|
+
"params.1",
|
7
7
|
"$container"
|
8
8
|
]
|
9
9
|
},
|
@@ -20,4 +20,4 @@
|
|
20
20
|
"$container"
|
21
21
|
]
|
22
22
|
}
|
23
|
-
}
|
23
|
+
}
|
@@ -2,14 +2,14 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
|
3
3
|
"": {
|
4
4
|
"inject": [
|
5
|
-
"
|
5
|
+
"params.0",
|
6
6
|
"$container"
|
7
7
|
]
|
8
8
|
},
|
9
9
|
"cli": {
|
10
10
|
"inject": [
|
11
|
-
"
|
11
|
+
"params.0",
|
12
12
|
"$container"
|
13
13
|
]
|
14
14
|
}
|
15
|
-
}
|
15
|
+
}
|
@@ -2,16 +2,16 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
|
3
3
|
"": {
|
4
4
|
"inject": [
|
5
|
-
"
|
6
|
-
"
|
5
|
+
"params.0",
|
6
|
+
"params.1",
|
7
7
|
"$container"
|
8
8
|
]
|
9
9
|
},
|
10
10
|
"cli": {
|
11
11
|
"inject": [
|
12
|
-
"
|
13
|
-
"
|
12
|
+
"params.0",
|
13
|
+
"params.1",
|
14
14
|
"$container"
|
15
15
|
]
|
16
16
|
}
|
17
|
-
}
|
17
|
+
}
|
package/src/cli-commands/link.ts
CHANGED
@@ -15,4 +15,4 @@ export default async function link(this: State, packageName: string, folder: str
|
|
15
15
|
return await pm.dispatch('discover', packageName, folder) as ReturnType<typeof discover>;
|
16
16
|
}
|
17
17
|
|
18
|
-
exports.default.$inject = ['
|
18
|
+
exports.default.$inject = ['params.0', 'params.1', '$container']
|
@@ -2,11 +2,11 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
|
3
3
|
"": {
|
4
4
|
"inject": [
|
5
|
-
"
|
6
|
-
"
|
7
|
-
"
|
8
|
-
"
|
9
|
-
"
|
5
|
+
"params.0",
|
6
|
+
"params.1",
|
7
|
+
"params.2",
|
8
|
+
"params.3",
|
9
|
+
"params.4"
|
10
10
|
]
|
11
11
|
},
|
12
12
|
"cli": {
|
package/src/cli-commands/run.ts
CHANGED
@@ -68,7 +68,7 @@ export default async function run(program: string, name: string, c: CliContext<{
|
|
68
68
|
pm2.container.register(Metadata.extractCommandMetadata(pm.resolve('bridge')));
|
69
69
|
if (!await pm2.container.dispatch('bridge', connectionId))
|
70
70
|
throw new Error('connection could not be established');
|
71
|
-
}, '$bridge', ['
|
71
|
+
}, '$bridge', ['params.0']));
|
72
72
|
|
73
73
|
if (init)
|
74
74
|
{
|
@@ -102,7 +102,7 @@ export default async function run(program: string, name: string, c: CliContext<{
|
|
102
102
|
if (pm !== cliContainer)
|
103
103
|
await pm.dispatch('ready')
|
104
104
|
else
|
105
|
-
await pm.dispatch('ready', { _trigger: 'pm',
|
105
|
+
await pm.dispatch('ready', { _trigger: 'pm', params: [pm] })
|
106
106
|
|
107
107
|
|
108
108
|
return new Promise(resolve => c.abort.signal.addEventListener('abort', resolve))
|
@@ -2,14 +2,14 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
|
3
3
|
"": {
|
4
4
|
"inject": [
|
5
|
-
"
|
5
|
+
"params.0",
|
6
6
|
"$container"
|
7
7
|
]
|
8
8
|
},
|
9
9
|
"cli": {
|
10
10
|
"inject": [
|
11
|
-
"
|
11
|
+
"params.0",
|
12
12
|
"$container"
|
13
13
|
]
|
14
14
|
}
|
15
|
-
}
|
15
|
+
}
|
@@ -2,8 +2,8 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
|
3
3
|
"": {
|
4
4
|
"inject": [
|
5
|
-
"
|
6
|
-
"
|
5
|
+
"params.0",
|
6
|
+
"params.1"
|
7
7
|
]
|
8
8
|
},
|
9
9
|
"cli": {
|
@@ -15,16 +15,16 @@
|
|
15
15
|
},
|
16
16
|
"schema": {
|
17
17
|
"inject": [
|
18
|
-
"
|
19
|
-
"
|
18
|
+
"params.0",
|
19
|
+
"params.1"
|
20
20
|
],
|
21
21
|
"$defs": {
|
22
|
-
"
|
22
|
+
"params.0": {
|
23
23
|
"type": "string"
|
24
24
|
},
|
25
|
-
"
|
25
|
+
"params.1": {
|
26
26
|
"type": "string"
|
27
27
|
}
|
28
28
|
}
|
29
29
|
}
|
30
|
-
}
|
30
|
+
}
|
package/src/cli-container.ts
CHANGED
@@ -38,7 +38,7 @@ namespace cliCommands
|
|
38
38
|
'update'(...args: [Argument0<typeof import('./cli-commands/update.js').default>, Argument1<typeof import('./cli-commands/update.js').default>, Argument2<typeof import('./cli-commands/update.js').default>]): ReturnType<typeof import('./cli-commands/update.js').default>
|
39
39
|
'version'(...args: [Argument0<typeof import('./cli-commands/version.js').default>, Argument1<typeof import('./cli-commands/version.js').default>]): ReturnType<typeof import('./cli-commands/version.js').default>
|
40
40
|
}
|
41
|
-
export const meta={"name":"pm","commands":[{"name":"$init","config":{"fs":{"path":"dist/esm/cli-commands/$init.js","source":"src/cli-commands/$init.ts","inject":["
|
41
|
+
export const meta={"name":"pm","commands":[{"name":"$init","config":{"fs":{"path":"dist/esm/cli-commands/$init.js","source":"src/cli-commands/$init.ts","inject":["params.0"]},"cli":{"inject":["context"],"options":{"pmSock":{"aliases":["pm-sock"],"needsValue":true}}},"":{"inject":["params.0"]}}},{"name":"connect","config":{"fs":{"path":"dist/esm/cli-commands/connect.js","source":"src/cli-commands/connect.ts","inject":["params.0","params.1"]},"":{"inject":["params.0","params.1"]},"cli":{"usage":"connect <name>","inject":["options.name","context"],"options":{"tcpPort":{"needsValue":true,"aliases":["tcp-port"]},"port":{"needsValue":true},"key":{"needsValue":true},"cert":{"needsValue":true}}}}},{"name":"discover","config":{"fs":{"path":"dist/esm/cli-commands/discover.js","source":"src/cli-commands/discover.ts","inject":["params.0","params.1","$container"]},"":{"inject":["params.0","params.1","$container"]},"cli":{"usage":"discover <name> <folder>","options":{"folder":{"normalize":true}},"inject":["options.name","options.folder","$container"]}}},{"name":"install","config":{"fs":{"path":"dist/esm/cli-commands/install.js","source":"src/cli-commands/install.ts","inject":["params.0","$container"]},"":{"inject":["params.0","$container"]},"cli":{"inject":["params.0","$container"]}}},{"name":"link","config":{"fs":{"path":"dist/esm/cli-commands/link.js","source":"src/cli-commands/link.ts","inject":["params.0","params.1","$container"]},"":{"inject":["params.0","params.1","$container"]},"cli":{"inject":["params.0","params.1","$container"]}}},{"name":"log","config":{"fs":{"path":"dist/esm/cli-commands/log.js","source":"src/cli-commands/log.ts","inject":["params.0"]},"":{"inject":["params.0"]},"cli":{"inject":["params.0"]}}},{"name":"ls","config":{"fs":{"path":"dist/esm/cli-commands/ls.js","source":"src/cli-commands/ls.ts","inject":[]},"":{"inject":[]},"cli":{"inject":[]},"html-form":{"inject":[]}}},{"name":"map","config":{"fs":{"path":"dist/esm/cli-commands/map.js","source":"src/cli-commands/map.ts","inject":["params.0","params.1","params.2","params.3","params.4"]},"":{"inject":["params.0","params.1","params.2","params.3","params.4"]},"cli":{"inject":["options.name","options.path","options.runtime","cwd","options"],"options":{"commandable":{"aliases":["c"],"needsValue":false},"stateless":{"aliases":["s"],"needsValue":false},"runtime":{"aliases":["r"],"needsValue":true}},"usage":"map <name> <path>"}}},{"name":"run","config":{"fs":{"path":"dist/esm/cli-commands/run.js","source":"src/cli-commands/run.ts","inject":["params.0","params.1"]},"":{"inject":["params.0","params.1"]},"jsonrpc":false,"cli":{"options":{"output":{"aliases":["o"],"needsValue":true,"doc":"output as `table` if array otherwise falls back to standard node output"},"verbose":{"aliases":["v"]},"tls":{"doc":"enables tls connection to the `pmSock`"},"pmSock":{"aliases":["pm-sock"],"needsValue":true,"doc":"path to the unix socket or destination in the form host:port"},"help":{"doc":"displays this help message"},"keepAttached":{"aliases":["keep-attached"],"needsValue":false,"doc":"keeps the process attached to the current terminal"},"wait":{"aliases":["w"],"needsValue":false,"doc":"waits for the program to be started before returning, otherwise, returns after the start command is sent to the pm daemon"},"inspect":{"needsValue":false,"doc":"starts the process with --inspect-brk parameter to help debugging"},"new":{"needsValue":false},"name":{"doc":"name to assign to the process","needsValue":true},"program":{"doc":"program to start"}},"inject":["options.program","options.name","context","options.pmSock"],"usage":"run <name> [...args]"}}},{"name":"start","config":{"fs":{"path":"dist/esm/cli-commands/start.js","source":"src/cli-commands/start.ts","inject":["params.0","params.1"]},"":{"inject":["params.0","params.1"]},"cli":{"options":{"output":{"aliases":["o"],"needsValue":true,"doc":"output as `table` if array otherwise falls back to standard node output"},"verbose":{"aliases":["v"]},"tls":{"doc":"enables tls connection to the `pmSock`"},"pmSock":{"aliases":["pm-sock"],"needsValue":true,"doc":"path to the unix socket or destination in the form host:port"},"help":{"doc":"displays this help message"},"keepAttached":{"aliases":["keep-attached"],"needsValue":false,"doc":"keeps the process attached to the current terminal"},"wait":{"aliases":["w"],"needsValue":false,"doc":"waits for the program to be started before returning, otherwise, returns after the start command is sent to the pm daemon"},"inspect":{"needsValue":false,"doc":"starts the process with --inspect-brk parameter to help debugging"}},"inject":["options.program","context"],"usage":"start pm"}}},{"name":"uninstall","config":{"fs":{"path":"dist/esm/cli-commands/uninstall.js","source":"src/cli-commands/uninstall.ts","inject":["params.0","$container"]},"":{"inject":["params.0","$container"]},"cli":{"inject":["params.0","$container"]}}},{"name":"update","config":{"fs":{"path":"dist/esm/cli-commands/update.js","source":"src/cli-commands/update.ts","inject":["params.0","params.1","params.2"]},"cli":{"inject":["params.0","params.1","$container"]},"":{"inject":["params.0","params.1","params.2"]}}},{"name":"version","config":{"fs":{"path":"dist/esm/cli-commands/version.js","source":"src/cli-commands/version.ts","inject":["params.0","params.1"]},"":{"inject":["params.0","params.1"]},"cli":{"inject":["options.packageName","options.folder"],"usage":"version <packageName> [folder]"},"schema":{"inject":["params.0","params.1"],"$defs":{"params.0":{"type":"string"},"params.1":{"type":"string"}}}}}],"$schema":"https://raw.githubusercontent.com/npenin/akala/main/packages/commands/container-schema.json"} as Metadata.Container;
|
42
42
|
|
43
43
|
export function connect(processor?:ICommandProcessor) {
|
44
44
|
const container = new Container<void>("cliCommands", void 0);
|
package/src/commands/$init.json
CHANGED
package/src/commands/$init.ts
CHANGED
@@ -112,7 +112,7 @@ export default async function (this: State, container: RunningContainer & pmCont
|
|
112
112
|
container.name = 'pm';
|
113
113
|
const config = container.resolve<Metadata.Configurations>('$metadata.config');
|
114
114
|
container.unregister('$metadata');
|
115
|
-
container.register(configure(config)(new SelfDefinedCommand(metadata, '$metadata', ['$container', '
|
115
|
+
container.register(configure(config)(new SelfDefinedCommand(metadata, '$metadata', ['$container', 'params.0'])));
|
116
116
|
|
117
117
|
const setup = this.config.setup?.packages;
|
118
118
|
if (setup?.length > 0)
|
@@ -159,6 +159,6 @@ export default async function (this: State, container: RunningContainer & pmCont
|
|
159
159
|
|
160
160
|
context.abort.signal.addEventListener('abort', async () =>
|
161
161
|
{
|
162
|
-
await container.dispatch('stop', {
|
162
|
+
await container.dispatch('stop', { params: ['pm'] });
|
163
163
|
});
|
164
164
|
}
|
package/src/commands/bridge.json
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
|
3
3
|
"jsonrpc": {
|
4
4
|
"inject": [
|
5
|
-
"
|
5
|
+
"params.0",
|
6
6
|
"socket"
|
7
7
|
]
|
8
8
|
},
|
9
9
|
"": {
|
10
10
|
"inject": [
|
11
|
-
"
|
12
|
-
"
|
11
|
+
"params.0",
|
12
|
+
"params.1"
|
13
13
|
]
|
14
14
|
}
|
15
|
-
}
|
15
|
+
}
|
package/src/commands/proxy.json
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
|
3
3
|
"jsonrpc": {
|
4
4
|
"inject": [
|
5
|
-
"
|
5
|
+
"params.0",
|
6
6
|
"socket"
|
7
7
|
]
|
8
8
|
},
|
9
9
|
"": {
|
10
10
|
"inject": [
|
11
|
-
"
|
12
|
-
"
|
11
|
+
"params.0",
|
12
|
+
"params.1"
|
13
13
|
]
|
14
14
|
}
|
15
|
-
}
|
15
|
+
}
|
package/src/commands/ready.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
|
3
3
|
"fs": {
|
4
4
|
"inject": [
|
5
|
-
"
|
5
|
+
"params.0"
|
6
6
|
]
|
7
7
|
},
|
8
8
|
"jsonrpc": {
|
@@ -12,7 +12,7 @@
|
|
12
12
|
},
|
13
13
|
"": {
|
14
14
|
"inject": [
|
15
|
-
"
|
15
|
+
"params.0"
|
16
16
|
]
|
17
17
|
}
|
18
|
-
}
|
18
|
+
}
|
@@ -3,8 +3,8 @@
|
|
3
3
|
"": {
|
4
4
|
"inject": [
|
5
5
|
"$container",
|
6
|
-
"
|
7
|
-
"
|
6
|
+
"params.0",
|
7
|
+
"params.1"
|
8
8
|
]
|
9
9
|
},
|
10
10
|
"cli": {
|
@@ -33,7 +33,7 @@
|
|
33
33
|
},
|
34
34
|
"inject": [
|
35
35
|
"$container",
|
36
|
-
"
|
36
|
+
"params.0",
|
37
37
|
"context"
|
38
38
|
],
|
39
39
|
"usage": "restart <program>"
|
@@ -41,14 +41,14 @@
|
|
41
41
|
"schema": {
|
42
42
|
"inject": [
|
43
43
|
"$container",
|
44
|
-
"
|
45
|
-
"
|
44
|
+
"params.0",
|
45
|
+
"params.1"
|
46
46
|
],
|
47
47
|
"$defs": {
|
48
|
-
"
|
48
|
+
"params.0": {
|
49
49
|
"type": "string"
|
50
50
|
},
|
51
|
-
"
|
51
|
+
"params.1": {
|
52
52
|
"type": "object",
|
53
53
|
"properties": {
|
54
54
|
"wait": {
|
@@ -61,8 +61,8 @@
|
|
61
61
|
"html-form": {
|
62
62
|
"inject": [
|
63
63
|
"$container",
|
64
|
-
"
|
65
|
-
"
|
64
|
+
"params.0",
|
65
|
+
"params.1"
|
66
66
|
]
|
67
67
|
}
|
68
|
-
}
|
68
|
+
}
|
package/src/commands/start.json
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
"": {
|
4
4
|
"inject": [
|
5
5
|
"$container",
|
6
|
-
"
|
7
|
-
"
|
8
|
-
"
|
6
|
+
"params.0",
|
7
|
+
"params.1",
|
8
|
+
"params.2"
|
9
9
|
]
|
10
10
|
},
|
11
11
|
"cli": {
|
@@ -46,23 +46,23 @@
|
|
46
46
|
"html-form": {
|
47
47
|
"inject": [
|
48
48
|
"$container",
|
49
|
-
"
|
50
|
-
"
|
51
|
-
"
|
49
|
+
"params.0",
|
50
|
+
"params.1",
|
51
|
+
"params.2"
|
52
52
|
]
|
53
53
|
},
|
54
54
|
"schema": {
|
55
55
|
"inject": [
|
56
56
|
"$container",
|
57
|
-
"
|
58
|
-
"
|
59
|
-
"
|
57
|
+
"params.0",
|
58
|
+
"params.1",
|
59
|
+
"params.2"
|
60
60
|
],
|
61
61
|
"$defs": {
|
62
|
-
"
|
62
|
+
"params.0": {
|
63
63
|
"type": "string"
|
64
64
|
},
|
65
|
-
"
|
65
|
+
"params.1": {
|
66
66
|
"type": "object",
|
67
67
|
"properties": {
|
68
68
|
"wait": {
|
@@ -82,7 +82,7 @@
|
|
82
82
|
}
|
83
83
|
}
|
84
84
|
},
|
85
|
-
"
|
85
|
+
"params.2": {
|
86
86
|
"type": "object",
|
87
87
|
"properties": {
|
88
88
|
"args": {
|
@@ -95,4 +95,4 @@
|
|
95
95
|
}
|
96
96
|
}
|
97
97
|
}
|
98
|
-
}
|
98
|
+
}
|
package/src/commands/status.json
CHANGED
@@ -2,28 +2,28 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
|
3
3
|
"": {
|
4
4
|
"inject": [
|
5
|
-
"
|
5
|
+
"params.0"
|
6
6
|
]
|
7
7
|
},
|
8
8
|
"cli": {
|
9
9
|
"inject": [
|
10
|
-
"
|
10
|
+
"params.0"
|
11
11
|
]
|
12
12
|
},
|
13
13
|
"html-form": {
|
14
14
|
"inject": [
|
15
|
-
"
|
15
|
+
"params.0"
|
16
16
|
]
|
17
17
|
},
|
18
18
|
"schema": {
|
19
19
|
"inject": [
|
20
|
-
"
|
20
|
+
"params.0"
|
21
21
|
],
|
22
22
|
"$defs": {
|
23
|
-
"
|
23
|
+
"params.0": {
|
24
24
|
"type": "string",
|
25
25
|
"description": "The name of the container to get the status of"
|
26
26
|
}
|
27
27
|
}
|
28
28
|
}
|
29
|
-
}
|
29
|
+
}
|
package/src/commands/stop.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/npenin/akala/main/packages/commands/command-schema.json",
|
3
3
|
"": {
|
4
4
|
"inject": [
|
5
|
-
"
|
5
|
+
"params.0",
|
6
6
|
"$container"
|
7
7
|
]
|
8
8
|
},
|
@@ -20,19 +20,19 @@
|
|
20
20
|
},
|
21
21
|
"html-form": {
|
22
22
|
"inject": [
|
23
|
-
"
|
23
|
+
"params.0",
|
24
24
|
"$container"
|
25
25
|
]
|
26
26
|
},
|
27
27
|
"schema": {
|
28
28
|
"inject": [
|
29
|
-
"
|
29
|
+
"params.0",
|
30
30
|
"$container"
|
31
31
|
],
|
32
32
|
"$defs": {
|
33
|
-
"
|
33
|
+
"params.0": {
|
34
34
|
"type": "string"
|
35
35
|
}
|
36
36
|
}
|
37
37
|
}
|
38
|
-
}
|
38
|
+
}
|