bitrise-api-cli 0.0.9 → 0.0.11
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 +18 -6
- package/dist/cli.js +116 -4
- package/dist/impl-KCO2VZ2R.js +1696 -0
- package/package.json +7 -6
- package/dist/bash-complete.js +0 -21
- package/dist/chunk-BL3ATQXK.js +0 -97
- package/dist/impl-BIHLRL5Y.js +0 -7603
package/package.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bitrise-api-cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"description": "bitrise api CLI wrapper",
|
|
5
5
|
"module": "index",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
|
-
"bitrise-api-cli": "./dist/cli.js"
|
|
9
|
-
"__bitrise-api-cli_bash_complete": "dist/bash-complete.js"
|
|
8
|
+
"bitrise-api-cli": "./dist/cli.js"
|
|
10
9
|
},
|
|
11
10
|
"keywords": ["bitrise", "bitriseio", "apk", "downloader"],
|
|
12
11
|
"license": "MIT",
|
|
@@ -24,14 +23,16 @@
|
|
|
24
23
|
},
|
|
25
24
|
"dependencies": {
|
|
26
25
|
"@stricli/core": "1.1.2",
|
|
26
|
+
"cosmiconfig": "9.0.0",
|
|
27
27
|
"ora": "8.2.0",
|
|
28
|
-
"zx": "8.5.
|
|
28
|
+
"zx": "8.5.3"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@biomejs/biome": "1.9.4",
|
|
32
|
-
"@openapitools/openapi-generator-cli": "2.
|
|
32
|
+
"@openapitools/openapi-generator-cli": "2.19.1",
|
|
33
|
+
"@total-typescript/ts-reset": "0.6.1",
|
|
33
34
|
"@types/bun": "latest",
|
|
34
35
|
"tsup": "8.4.0",
|
|
35
|
-
"typescript": "5.8.
|
|
36
|
+
"typescript": "5.8.3"
|
|
36
37
|
}
|
|
37
38
|
}
|
package/dist/bash-complete.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
app,
|
|
4
|
-
buildContext
|
|
5
|
-
} from "./chunk-BL3ATQXK.js";
|
|
6
|
-
import "./chunk-CF25N4TY.js";
|
|
7
|
-
|
|
8
|
-
// src/cli/bin/bash-complete.ts
|
|
9
|
-
import { proposeCompletions } from "@stricli/core";
|
|
10
|
-
var inputs = process.argv.slice(3);
|
|
11
|
-
if (process.env["COMP_LINE"]?.endsWith(" ")) {
|
|
12
|
-
inputs.push("");
|
|
13
|
-
}
|
|
14
|
-
await proposeCompletions(app, inputs, buildContext(process));
|
|
15
|
-
try {
|
|
16
|
-
for (const { completion } of await proposeCompletions(app, inputs, buildContext(process))) {
|
|
17
|
-
process.stdout.write(`${completion}
|
|
18
|
-
`);
|
|
19
|
-
}
|
|
20
|
-
} catch {
|
|
21
|
-
}
|
package/dist/chunk-BL3ATQXK.js
DELETED
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
validArtifactTypes
|
|
3
|
-
} from "./chunk-CF25N4TY.js";
|
|
4
|
-
|
|
5
|
-
// src/cli/commands/download/command.ts
|
|
6
|
-
import { buildCommand } from "@stricli/core";
|
|
7
|
-
var downloadCommand = buildCommand({
|
|
8
|
-
loader: async () => import("./impl-BIHLRL5Y.js"),
|
|
9
|
-
parameters: {
|
|
10
|
-
flags: {
|
|
11
|
-
artifact: {
|
|
12
|
-
kind: "enum",
|
|
13
|
-
brief: 'bitrise artifact type "ios-ipa" or "android-apk"',
|
|
14
|
-
default: "android-apk",
|
|
15
|
-
values: validArtifactTypes
|
|
16
|
-
},
|
|
17
|
-
debug: {
|
|
18
|
-
kind: "boolean",
|
|
19
|
-
brief: "Number of times to say hello",
|
|
20
|
-
default: false
|
|
21
|
-
},
|
|
22
|
-
slug: {
|
|
23
|
-
kind: "parsed",
|
|
24
|
-
brief: "bitrise app slug (or $BITRISE_APP_SLUG) see bitrise project url to get slug",
|
|
25
|
-
default: process.env["BITRISE_APP_SLUG"],
|
|
26
|
-
parse: String,
|
|
27
|
-
placeholder: "APP_SLUG"
|
|
28
|
-
},
|
|
29
|
-
token: {
|
|
30
|
-
kind: "parsed",
|
|
31
|
-
brief: "bitrise api token (or $BITRISE_API_CLI_TOKEN)",
|
|
32
|
-
default: process.env["BITRISE_API_CLI_TOKEN"],
|
|
33
|
-
parse: String,
|
|
34
|
-
placeholder: "API_TOKEN"
|
|
35
|
-
},
|
|
36
|
-
workflow: {
|
|
37
|
-
kind: "parsed",
|
|
38
|
-
brief: "workflow to get apk from (or $BITRISE_API_CLI_WORKFLOW)",
|
|
39
|
-
default: process.env["BITRISE_API_CLI_WORKFLOW"],
|
|
40
|
-
parse: String,
|
|
41
|
-
placeholder: "WORKFLOW_NAME"
|
|
42
|
-
},
|
|
43
|
-
install: {
|
|
44
|
-
kind: "boolean",
|
|
45
|
-
brief: "Install the downloaded apk/aab artifact [android only]",
|
|
46
|
-
default: false
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
aliases: {
|
|
50
|
-
a: "artifact",
|
|
51
|
-
d: "debug",
|
|
52
|
-
s: "slug",
|
|
53
|
-
t: "token",
|
|
54
|
-
w: "workflow",
|
|
55
|
-
i: "install"
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
docs: {
|
|
59
|
-
brief: "Download bitrise artifacts. Most parameters can be set via environment variables."
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
// src/cli/app.ts
|
|
64
|
-
import { buildApplication, buildRouteMap } from "@stricli/core";
|
|
65
|
-
|
|
66
|
-
// package.json
|
|
67
|
-
var name = "bitrise-api-cli";
|
|
68
|
-
var version = "0.0.9";
|
|
69
|
-
var description = "bitrise api CLI wrapper";
|
|
70
|
-
|
|
71
|
-
// src/cli/app.ts
|
|
72
|
-
var root = buildRouteMap({
|
|
73
|
-
routes: {
|
|
74
|
-
download: downloadCommand
|
|
75
|
-
},
|
|
76
|
-
docs: {
|
|
77
|
-
brief: description
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
var app = buildApplication(root, {
|
|
81
|
-
name,
|
|
82
|
-
versionInfo: {
|
|
83
|
-
currentVersion: version
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
// src/cli/context.ts
|
|
88
|
-
function buildContext(process2) {
|
|
89
|
-
return {
|
|
90
|
-
process: process2
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export {
|
|
95
|
-
app,
|
|
96
|
-
buildContext
|
|
97
|
-
};
|