@gitbeaker/cli 42.4.1 → 43.0.0
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 +2 -6
- package/dist/index.mjs +8 -10
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -18,12 +18,6 @@
|
|
|
18
18
|
<br>
|
|
19
19
|
<sup>Special thanks to:</sup>
|
|
20
20
|
<br>
|
|
21
|
-
<br>
|
|
22
|
-
|
|
23
|
-
<a href="https://wearecws.com/">
|
|
24
|
-
<img src="../../.github/ASSETS/cws.svg" width="180">
|
|
25
|
-
</a>
|
|
26
|
-
<br>
|
|
27
21
|
<br>
|
|
28
22
|
<a href="http://coderabbit.ai">
|
|
29
23
|
<img src="../../.github/ASSETS/coderabbit.png" width="180">
|
|
@@ -242,6 +236,8 @@ GITBEAKER_CAMELIZE=true
|
|
|
242
236
|
<td align="center" valign="top" width="0.33%"><a href="https://github.com/Sephyr0s"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/34128667?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Marco"/></td>
|
|
243
237
|
<td align="center" valign="top" width="0.33%"><a href="https://github.com/enduity"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/19674002?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Endrik Einberg"/></td>
|
|
244
238
|
<td align="center" valign="top" width="0.33%"><a href="https://note.itswhat.me/"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/38807139?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Bryan Lee"/></td>
|
|
239
|
+
<td align="center" valign="top" width="0.33%"><a href="https://github.com/zk-kb4"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/42388953?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Zack"/></td>
|
|
240
|
+
<td align="center" valign="top" width="0.33%"><a href="https://github.com/kayw-geek"><img src="https://images.weserv.nl/?url=https://avatars.githubusercontent.com/u/29700073?v=4&h=25&w=25&fit=cover&mask=circle&maxage=7d" alt="Kay W."/></td>
|
|
245
241
|
</tr>
|
|
246
242
|
</p>
|
|
247
243
|
|
package/dist/index.mjs
CHANGED
|
@@ -161,14 +161,12 @@ function runAPIMethod(ctx, args, apiName, method) {
|
|
|
161
161
|
const s = new Gitbeaker[apiName](initArgs);
|
|
162
162
|
return s[method.name](...Object.values(coreArgs), optionalArgs).then((r) => {
|
|
163
163
|
ctx.output = JSON.stringify(r, null, 3);
|
|
164
|
-
}).catch((e) => {
|
|
165
|
-
ctx.output = e;
|
|
166
164
|
});
|
|
167
165
|
}
|
|
168
166
|
function setupAPIs(setupArgs, apiName, methods) {
|
|
169
167
|
const globalConfig = getGlobalConfig();
|
|
170
168
|
Object.entries(globalConfig).forEach(([k, v]) => {
|
|
171
|
-
setupArgs.option(
|
|
169
|
+
setupArgs.option(`--${k} <value>`, {
|
|
172
170
|
group: "Base Options",
|
|
173
171
|
...v
|
|
174
172
|
});
|
|
@@ -189,13 +187,13 @@ var optionStyle = Chalk.white.bold;
|
|
|
189
187
|
var descriptionStyle = Chalk.hex("#848484");
|
|
190
188
|
var hintStyle = Chalk.hex("#6a5f88");
|
|
191
189
|
var cli = Sywac.version("-v, --version").help("-h, --help").showHelpByDefault().epilogue(`Copyright ${(/* @__PURE__ */ new Date()).getFullYear()}`).style({
|
|
192
|
-
usagePrefix: usageStyle,
|
|
193
|
-
group: groupStyle,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
usageOptionsPlaceholder: optionStyle,
|
|
197
|
-
desc: descriptionStyle,
|
|
198
|
-
hints: hintStyle
|
|
190
|
+
usagePrefix: (s) => usageStyle(s),
|
|
191
|
+
group: (s) => groupStyle(s),
|
|
192
|
+
usageCommandPlaceholder: (s) => commandStyle(s),
|
|
193
|
+
flags: (s) => optionStyle(s),
|
|
194
|
+
usageOptionsPlaceholder: (s) => optionStyle(s),
|
|
195
|
+
desc: (s) => descriptionStyle(s),
|
|
196
|
+
hints: (s) => hintStyle(s)
|
|
199
197
|
});
|
|
200
198
|
cli.boolean("-g --global-args", {
|
|
201
199
|
desc: "Show global arguments currently set in the environment variables"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gitbeaker/cli",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "43.0.0",
|
|
4
4
|
"description": "CLI implementation of the GitLab API.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"lint:fix": "yarn lint --fix"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@gitbeaker/core": "^
|
|
43
|
-
"@gitbeaker/rest": "^
|
|
44
|
-
"chalk": "4.1
|
|
42
|
+
"@gitbeaker/core": "^43.0.0",
|
|
43
|
+
"@gitbeaker/rest": "^43.0.0",
|
|
44
|
+
"chalk": "^5.4.1",
|
|
45
45
|
"sywac": "^1.3.0",
|
|
46
46
|
"xcase": "^2.0.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"tsup": "^8.
|
|
50
|
-
"typescript": "^5.
|
|
49
|
+
"tsup": "^8.5.0",
|
|
50
|
+
"typescript": "^5.8.3"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "2ae1422a257c0dfe21da6bbfd0f9fd63ea510e85"
|
|
53
53
|
}
|