@pmate/cli 0.49.1 → 0.49.2
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/dist/index.js +26 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8884,6 +8884,27 @@ __export(index_exports, {
|
|
|
8884
8884
|
});
|
|
8885
8885
|
module.exports = __toCommonJS(index_exports);
|
|
8886
8886
|
|
|
8887
|
+
// src/serviceHelp.ts
|
|
8888
|
+
function serviceHelp(argv) {
|
|
8889
|
+
const end = argv.indexOf("--");
|
|
8890
|
+
const options = end < 0 ? argv : argv.slice(0, end);
|
|
8891
|
+
if (options[0] !== "service" || !options.some((value) => value === "--help" || value === "-h")) return;
|
|
8892
|
+
return `PMate service commands
|
|
8893
|
+
pmate service list [--namespace NS] [--repo OWNER/REPO] [--server NAME] [--json]
|
|
8894
|
+
pmate service get NS:SERVICE [--json]
|
|
8895
|
+
pmate service view NS:SERVICE
|
|
8896
|
+
pmate service create --file FILE [--json]
|
|
8897
|
+
pmate service update NS:SERVICE --file FILE [--json]
|
|
8898
|
+
pmate service deploy NS:SERVICE [--env prod] [--dry-run] [--json]
|
|
8899
|
+
pmate service log NS:SERVICE [--env prod] [--since-ms MS] [--page N] [--follow] [--json]
|
|
8900
|
+
pmate service stop NS:SERVICE [--json]
|
|
8901
|
+
Registry commands support --base-url URL. IDs identify Services, not Apps.
|
|
8902
|
+
Deploy uses the registered release configuration; read the current Service before mutations.
|
|
8903
|
+
Native deploy options: --platform mac|win --arch arm64|x64 --config FILE --scheme NAME --team ID --variant release|debug --bump patch|minor|major.
|
|
8904
|
+
Other service actions: rename, move, delete, init, ssl, env, env-vars, apk. Run pmate --help for their command catalogue.
|
|
8905
|
+
Help performs no login, registry request or deployment.`;
|
|
8906
|
+
}
|
|
8907
|
+
|
|
8887
8908
|
// src/sessionCommand.ts
|
|
8888
8909
|
init_sessionStore();
|
|
8889
8910
|
function sessionCommand(args) {
|
|
@@ -29405,6 +29426,11 @@ async function main() {
|
|
|
29405
29426
|
process.stdout.write(JSON.stringify(sessionCommand(process.argv.slice(3))) + "\n");
|
|
29406
29427
|
return;
|
|
29407
29428
|
}
|
|
29429
|
+
const help = serviceHelp(process.argv.slice(2));
|
|
29430
|
+
if (help) {
|
|
29431
|
+
ui.plain(help);
|
|
29432
|
+
return;
|
|
29433
|
+
}
|
|
29408
29434
|
await ensureManagedSession();
|
|
29409
29435
|
const args = parseArgs(process.argv.slice(2));
|
|
29410
29436
|
if (args.help) {
|