@gpc-cli/cli 0.9.84 → 0.9.86
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/bin.js +2 -2
- package/dist/{chunk-U2TLKEOQ.js → chunk-7WCPDN6F.js} +8 -8
- package/dist/{config-VLVI3UYG.js → config-4NLR5X3R.js} +2 -2
- package/dist/{doctor-AFKCVNST.js → doctor-PF5TLBJU.js} +2 -2
- package/dist/{feedback-LQGBKIVJ.js → feedback-KGFRUWPX.js} +2 -2
- package/dist/games-7K5RKXCO.js +361 -0
- package/dist/games-7K5RKXCO.js.map +1 -0
- package/dist/generated/docs-bundle.json +1 -1
- package/dist/index.js +1 -1
- package/dist/{update-PE4PZLOX.js → update-NCQITHSD.js} +2 -2
- package/dist/{version-LGTHQ3SD.js → version-DTYPZ53P.js} +2 -2
- package/package.json +5 -5
- package/dist/games-SVFN2YIS.js +0 -60
- package/dist/games-SVFN2YIS.js.map +0 -1
- /package/dist/{chunk-U2TLKEOQ.js.map → chunk-7WCPDN6F.js.map} +0 -0
- /package/dist/{config-VLVI3UYG.js.map → config-4NLR5X3R.js.map} +0 -0
- /package/dist/{doctor-AFKCVNST.js.map → doctor-PF5TLBJU.js.map} +0 -0
- /package/dist/{feedback-LQGBKIVJ.js.map → feedback-KGFRUWPX.js.map} +0 -0
- /package/dist/{update-PE4PZLOX.js.map → update-NCQITHSD.js.map} +0 -0
- /package/dist/{version-LGTHQ3SD.js.map → version-DTYPZ53P.js.map} +0 -0
package/dist/index.js
CHANGED
|
@@ -17,7 +17,7 @@ function registerUpdateCommand(program) {
|
|
|
17
17
|
program.command("update").description("Update gpc to the latest version").option("--check", "Check for updates without installing (exits 0 always)").option("--force", "Update even if already on the latest version").action(async (opts, cmd) => {
|
|
18
18
|
const parentOpts = cmd.parent?.opts() ?? {};
|
|
19
19
|
const jsonMode = !!(parentOpts["json"] || parentOpts["output"] === "json");
|
|
20
|
-
const currentVersion = "0.9.
|
|
20
|
+
const currentVersion = "0.9.86";
|
|
21
21
|
if (currentVersion === "0.0.0") {
|
|
22
22
|
if (jsonMode) {
|
|
23
23
|
console.log(
|
|
@@ -172,4 +172,4 @@ Run: gpc update`);
|
|
|
172
172
|
export {
|
|
173
173
|
registerUpdateCommand
|
|
174
174
|
};
|
|
175
|
-
//# sourceMappingURL=update-
|
|
175
|
+
//# sourceMappingURL=update-NCQITHSD.js.map
|
|
@@ -7,7 +7,7 @@ import "./chunk-3SJ6OXCZ.js";
|
|
|
7
7
|
// src/commands/version.ts
|
|
8
8
|
function registerVersionCommand(program) {
|
|
9
9
|
program.command("version").description("Show version information").action(() => {
|
|
10
|
-
const version = "0.9.
|
|
10
|
+
const version = "0.9.86";
|
|
11
11
|
if (program.opts()["output"] === "json") {
|
|
12
12
|
console.log(
|
|
13
13
|
JSON.stringify({
|
|
@@ -25,4 +25,4 @@ function registerVersionCommand(program) {
|
|
|
25
25
|
export {
|
|
26
26
|
registerVersionCommand
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=version-
|
|
28
|
+
//# sourceMappingURL=version-DTYPZ53P.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpc-cli/cli",
|
|
3
|
-
"version": "0.9.
|
|
4
|
-
"description": "GPC — Google Play Console CLI.
|
|
3
|
+
"version": "0.9.86",
|
|
4
|
+
"description": "GPC — Google Play Console CLI. 227 API endpoints including Managed Google Play. Upload AABs, manage releases, monitor vitals, publish private enterprise apps. Fastlane alternative for Android.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"gpc": "./dist/bin.js"
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"clean": "rm -rf dist"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@gpc-cli/api": "1.0.
|
|
32
|
+
"@gpc-cli/api": "1.0.45",
|
|
33
33
|
"@gpc-cli/auth": "0.9.16",
|
|
34
|
-
"@gpc-cli/config": "0.9.
|
|
35
|
-
"@gpc-cli/core": "0.9.
|
|
34
|
+
"@gpc-cli/config": "0.9.19",
|
|
35
|
+
"@gpc-cli/core": "0.9.72",
|
|
36
36
|
"@gpc-cli/plugin-sdk": "0.9.10",
|
|
37
37
|
"commander": "^14.0.3"
|
|
38
38
|
},
|
package/dist/games-SVFN2YIS.js
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
resolvePackageName
|
|
4
|
-
} from "./chunk-JDRY7HK5.js";
|
|
5
|
-
import {
|
|
6
|
-
getOutputFormat
|
|
7
|
-
} from "./chunk-ELXAK7GI.js";
|
|
8
|
-
|
|
9
|
-
// src/commands/games.ts
|
|
10
|
-
import { loadConfig } from "@gpc-cli/config";
|
|
11
|
-
import { resolveAuth } from "@gpc-cli/auth";
|
|
12
|
-
import { createGamesClient } from "@gpc-cli/api";
|
|
13
|
-
import { listLeaderboards, listAchievements, listEvents, formatOutput } from "@gpc-cli/core";
|
|
14
|
-
async function getGamesClient(config) {
|
|
15
|
-
const auth = await resolveAuth({ serviceAccountPath: config.auth?.serviceAccount });
|
|
16
|
-
return createGamesClient({ auth });
|
|
17
|
-
}
|
|
18
|
-
function registerGamesCommands(program) {
|
|
19
|
-
const games = program.command("games").description("Manage Play Games Services \u2014 leaderboards, achievements, events");
|
|
20
|
-
games.command("leaderboards").description("List leaderboards for the app").action(async () => {
|
|
21
|
-
const config = await loadConfig();
|
|
22
|
-
const packageName = resolvePackageName(program.opts()["app"], config);
|
|
23
|
-
const client = await getGamesClient(config);
|
|
24
|
-
const format = getOutputFormat(program, config);
|
|
25
|
-
const result = await listLeaderboards(client, packageName);
|
|
26
|
-
if (result.length === 0 && format !== "json") {
|
|
27
|
-
console.log("No leaderboards found.");
|
|
28
|
-
return;
|
|
29
|
-
}
|
|
30
|
-
console.log(formatOutput(result, format));
|
|
31
|
-
});
|
|
32
|
-
games.command("achievements").description("List achievements for the app").action(async () => {
|
|
33
|
-
const config = await loadConfig();
|
|
34
|
-
const packageName = resolvePackageName(program.opts()["app"], config);
|
|
35
|
-
const client = await getGamesClient(config);
|
|
36
|
-
const format = getOutputFormat(program, config);
|
|
37
|
-
const result = await listAchievements(client, packageName);
|
|
38
|
-
if (result.length === 0 && format !== "json") {
|
|
39
|
-
console.log("No achievements found.");
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
console.log(formatOutput(result, format));
|
|
43
|
-
});
|
|
44
|
-
games.command("events").description("List events for the app").action(async () => {
|
|
45
|
-
const config = await loadConfig();
|
|
46
|
-
const packageName = resolvePackageName(program.opts()["app"], config);
|
|
47
|
-
const client = await getGamesClient(config);
|
|
48
|
-
const format = getOutputFormat(program, config);
|
|
49
|
-
const result = await listEvents(client, packageName);
|
|
50
|
-
if (result.length === 0 && format !== "json") {
|
|
51
|
-
console.log("No events found.");
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
console.log(formatOutput(result, format));
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
export {
|
|
58
|
-
registerGamesCommands
|
|
59
|
-
};
|
|
60
|
-
//# sourceMappingURL=games-SVFN2YIS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/games.ts"],"sourcesContent":["import { resolvePackageName } from \"../resolve.js\";\nimport type { Command } from \"commander\";\nimport { loadConfig } from \"@gpc-cli/config\";\nimport { resolveAuth } from \"@gpc-cli/auth\";\nimport { createGamesClient } from \"@gpc-cli/api\";\nimport { listLeaderboards, listAchievements, listEvents, formatOutput } from \"@gpc-cli/core\";\nimport { getOutputFormat } from \"../format.js\";\n\nasync function getGamesClient(config: { auth?: { serviceAccount?: string } }) {\n const auth = await resolveAuth({ serviceAccountPath: config.auth?.serviceAccount });\n return createGamesClient({ auth });\n}\n\nexport function registerGamesCommands(program: Command): void {\n const games = program\n .command(\"games\")\n .description(\"Manage Play Games Services — leaderboards, achievements, events\");\n\n games\n .command(\"leaderboards\")\n .description(\"List leaderboards for the app\")\n .action(async () => {\n const config = await loadConfig();\n const packageName = resolvePackageName(program.opts()[\"app\"], config);\n const client = await getGamesClient(config);\n const format = getOutputFormat(program, config);\n\n const result = await listLeaderboards(client, packageName);\n if (result.length === 0 && format !== \"json\") {\n console.log(\"No leaderboards found.\");\n return;\n }\n console.log(formatOutput(result, format));\n });\n\n games\n .command(\"achievements\")\n .description(\"List achievements for the app\")\n .action(async () => {\n const config = await loadConfig();\n const packageName = resolvePackageName(program.opts()[\"app\"], config);\n const client = await getGamesClient(config);\n const format = getOutputFormat(program, config);\n\n const result = await listAchievements(client, packageName);\n if (result.length === 0 && format !== \"json\") {\n console.log(\"No achievements found.\");\n return;\n }\n console.log(formatOutput(result, format));\n });\n\n games\n .command(\"events\")\n .description(\"List events for the app\")\n .action(async () => {\n const config = await loadConfig();\n const packageName = resolvePackageName(program.opts()[\"app\"], config);\n const client = await getGamesClient(config);\n const format = getOutputFormat(program, config);\n\n const result = await listEvents(client, packageName);\n if (result.length === 0 && format !== \"json\") {\n console.log(\"No events found.\");\n return;\n }\n console.log(formatOutput(result, format));\n });\n}\n"],"mappings":";;;;;;;;;AAEA,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,yBAAyB;AAClC,SAAS,kBAAkB,kBAAkB,YAAY,oBAAoB;AAG7E,eAAe,eAAe,QAAgD;AAC5E,QAAM,OAAO,MAAM,YAAY,EAAE,oBAAoB,OAAO,MAAM,eAAe,CAAC;AAClF,SAAO,kBAAkB,EAAE,KAAK,CAAC;AACnC;AAEO,SAAS,sBAAsB,SAAwB;AAC5D,QAAM,QAAQ,QACX,QAAQ,OAAO,EACf,YAAY,sEAAiE;AAEhF,QACG,QAAQ,cAAc,EACtB,YAAY,+BAA+B,EAC3C,OAAO,YAAY;AAClB,UAAM,SAAS,MAAM,WAAW;AAChC,UAAM,cAAc,mBAAmB,QAAQ,KAAK,EAAE,KAAK,GAAG,MAAM;AACpE,UAAM,SAAS,MAAM,eAAe,MAAM;AAC1C,UAAM,SAAS,gBAAgB,SAAS,MAAM;AAE9C,UAAM,SAAS,MAAM,iBAAiB,QAAQ,WAAW;AACzD,QAAI,OAAO,WAAW,KAAK,WAAW,QAAQ;AAC5C,cAAQ,IAAI,wBAAwB;AACpC;AAAA,IACF;AACA,YAAQ,IAAI,aAAa,QAAQ,MAAM,CAAC;AAAA,EAC1C,CAAC;AAEH,QACG,QAAQ,cAAc,EACtB,YAAY,+BAA+B,EAC3C,OAAO,YAAY;AAClB,UAAM,SAAS,MAAM,WAAW;AAChC,UAAM,cAAc,mBAAmB,QAAQ,KAAK,EAAE,KAAK,GAAG,MAAM;AACpE,UAAM,SAAS,MAAM,eAAe,MAAM;AAC1C,UAAM,SAAS,gBAAgB,SAAS,MAAM;AAE9C,UAAM,SAAS,MAAM,iBAAiB,QAAQ,WAAW;AACzD,QAAI,OAAO,WAAW,KAAK,WAAW,QAAQ;AAC5C,cAAQ,IAAI,wBAAwB;AACpC;AAAA,IACF;AACA,YAAQ,IAAI,aAAa,QAAQ,MAAM,CAAC;AAAA,EAC1C,CAAC;AAEH,QACG,QAAQ,QAAQ,EAChB,YAAY,yBAAyB,EACrC,OAAO,YAAY;AAClB,UAAM,SAAS,MAAM,WAAW;AAChC,UAAM,cAAc,mBAAmB,QAAQ,KAAK,EAAE,KAAK,GAAG,MAAM;AACpE,UAAM,SAAS,MAAM,eAAe,MAAM;AAC1C,UAAM,SAAS,gBAAgB,SAAS,MAAM;AAE9C,UAAM,SAAS,MAAM,WAAW,QAAQ,WAAW;AACnD,QAAI,OAAO,WAAW,KAAK,WAAW,QAAQ;AAC5C,cAAQ,IAAI,kBAAkB;AAC9B;AAAA,IACF;AACA,YAAQ,IAAI,aAAa,QAAQ,MAAM,CAAC;AAAA,EAC1C,CAAC;AACL;","names":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|