@done-coding/cli-git 0.6.12 → 0.6.13-alpha.1
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/es/cli.mjs +2 -3
- package/es/helpers.mjs +10 -11
- package/es/{index-8640f971.js → index-ce13e9d5.js} +64 -63
- package/es/{index-166c6260.js → index-f36fe1a6.js} +1 -1
- package/es/index.mjs +18 -19
- package/package.json +5 -5
package/es/cli.mjs
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as m } from "./index-
|
|
3
|
-
import "./index-
|
|
2
|
+
import { c as m } from "./index-f36fe1a6.js";
|
|
3
|
+
import "./index-ce13e9d5.js";
|
|
4
4
|
import "@done-coding/cli-utils";
|
|
5
|
-
import "node:child_process";
|
|
6
5
|
import "node:fs";
|
|
7
6
|
import "node:path";
|
|
8
7
|
import "@done-coding/request-axios";
|
package/es/helpers.mjs
CHANGED
|
@@ -1,29 +1,28 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { g as i, G as
|
|
3
|
-
import { log as o, xPrompts as
|
|
4
|
-
import "node:child_process";
|
|
2
|
+
import { g as i, G as a, a as m, h as s } from "./index-ce13e9d5.js";
|
|
3
|
+
import { log as o, xPrompts as r } from "@done-coding/cli-utils";
|
|
5
4
|
import "node:fs";
|
|
6
5
|
import "node:path";
|
|
7
6
|
import "@done-coding/request-axios";
|
|
8
7
|
import "axios";
|
|
9
|
-
const
|
|
8
|
+
const u = async (e) => {
|
|
10
9
|
o.info("克隆done-coding系列项目"), o.stage("选择平台:");
|
|
11
|
-
const { platform: t } = await
|
|
10
|
+
const { platform: t } = await r(i(a.GITEE));
|
|
12
11
|
o.stage("选择用户名:");
|
|
13
|
-
const { username:
|
|
12
|
+
const { username: n } = await r(
|
|
14
13
|
m(
|
|
15
14
|
{
|
|
16
|
-
[
|
|
17
|
-
[
|
|
15
|
+
[a.GITHUB]: "done-coding",
|
|
16
|
+
[a.GITEE]: "justsosu"
|
|
18
17
|
}[t]
|
|
19
18
|
)
|
|
20
19
|
);
|
|
21
|
-
o.info("platform:", t), o.info("username:",
|
|
20
|
+
o.info("platform:", t), o.info("username:", n), await s({
|
|
22
21
|
platform: t,
|
|
23
|
-
username:
|
|
22
|
+
username: n,
|
|
24
23
|
projectName: e
|
|
25
24
|
});
|
|
26
25
|
};
|
|
27
26
|
export {
|
|
28
|
-
|
|
27
|
+
u as cloneDoneCodingSeries
|
|
29
28
|
};
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { lookForParentTarget as Y, log as i, decryptAES as Z, encryptAES as W, xPrompts as
|
|
3
|
-
import { execSync as N } from "node:child_process";
|
|
2
|
+
import { lookForParentTarget as Y, log as i, decryptAES as Z, encryptAES as W, xPrompts as h, HooksNameEnum as p, addHuskyHooks as ee, initHandlerCommon as te, getConfigFileCommonOptions as I, execSyncWithLogDispatch as N, readConfigFile as R, getCurrentBranchName as se, getCommitByHookName as oe, resolveMergeInfoByGitReflogAction as re, checkCurrentIsRebasing as ne, resolveMergeInfoByCommitMsg as ce, getCurrentBranchLastCommitList as ae, getLastReflogList as ie, createSubcommand as ge, getRootScriptName as me } from "@done-coding/cli-utils";
|
|
4
3
|
import _ from "node:fs";
|
|
5
4
|
import w from "node:path";
|
|
6
5
|
import { createRequest as L } from "@done-coding/request-axios";
|
|
7
|
-
import
|
|
8
|
-
var
|
|
9
|
-
const
|
|
10
|
-
timeout:
|
|
6
|
+
import pe from "axios";
|
|
7
|
+
var f = /* @__PURE__ */ ((e) => (e.INIT = "init", e.CLONE = "clone", e.HOOKS = "hooks", e.CHECK = "check", e))(f || {}), d = /* @__PURE__ */ ((e) => (e.DEFAULT = "default", e.CLONE_CONFIG = "cloneConfig", e))(d || {}), E = /* @__PURE__ */ ((e) => (e.GITHUB = "github", e.GITEE = "gitee", e))(E || {}), C = /* @__PURE__ */ ((e) => (e.REVERSE_MERGE = "reverseMerge", e))(C || {}), u = /* @__PURE__ */ ((e) => (e.REFLOG_ACTION = "reflog-action", e.COMMIT_MSG = "commit-msg", e.COMMIT_RECORD = "commit-record", e.PRE_REBASE = "pre-rebase", e))(u || {});
|
|
8
|
+
const le = 3e4, y = Math.random(), U = {
|
|
9
|
+
timeout: le,
|
|
11
10
|
getBusinessCode() {
|
|
12
11
|
return y;
|
|
13
12
|
},
|
|
@@ -18,14 +17,14 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
18
17
|
return e.data;
|
|
19
18
|
},
|
|
20
19
|
businessSuccessCodeList: [y],
|
|
21
|
-
axios:
|
|
20
|
+
axios: pe
|
|
22
21
|
}, x = L({
|
|
23
22
|
basePath: " https://gitee.com",
|
|
24
23
|
...U
|
|
25
24
|
}), A = L({
|
|
26
25
|
basePath: "https://api.github.com",
|
|
27
26
|
...U
|
|
28
|
-
}),
|
|
27
|
+
}), fe = ({
|
|
29
28
|
username: e
|
|
30
29
|
}) => x({
|
|
31
30
|
url: `/api/v5/users/${e}/repos`,
|
|
@@ -46,7 +45,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
46
45
|
}) => A({
|
|
47
46
|
url: `/users/${e}/repos`,
|
|
48
47
|
method: "GET"
|
|
49
|
-
}),
|
|
48
|
+
}), he = ({
|
|
50
49
|
accessToken: e
|
|
51
50
|
}) => A({
|
|
52
51
|
url: "/user/repos",
|
|
@@ -61,7 +60,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
61
60
|
}
|
|
62
61
|
}), T = {
|
|
63
62
|
name: "@done-coding/cli-git",
|
|
64
|
-
version: "0.6.
|
|
63
|
+
version: "0.6.13-alpha.1",
|
|
65
64
|
description: "git跨平台操作命令行工具",
|
|
66
65
|
bin: {
|
|
67
66
|
"dc-git": "es/cli.mjs"
|
|
@@ -71,8 +70,8 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
71
70
|
moduleName: "git"
|
|
72
71
|
}
|
|
73
72
|
}, {
|
|
74
|
-
cliConfig: { namespaceDir:
|
|
75
|
-
} = T, F = `./${
|
|
73
|
+
cliConfig: { namespaceDir: de, moduleName: Re }
|
|
74
|
+
} = T, F = `./${de}/${Re}`, S = `${F}.json`, H = (e) => `${F}/.${e}`, D = ({ platform: e, username: t }) => `${e}/${t}`, Me = (e) => {
|
|
76
75
|
const { platform: t } = e, s = H(t), r = Y(s, {
|
|
77
76
|
isFindFarthest: !1
|
|
78
77
|
});
|
|
@@ -94,10 +93,10 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
94
93
|
}) => {
|
|
95
94
|
const o = H(s), n = JSON.stringify({
|
|
96
95
|
accessToken: r
|
|
97
|
-
}), g = D({ platform: s, username: t }),
|
|
96
|
+
}), g = D({ platform: s, username: t }), l = W({ text: n, secretKey: g }), a = w.join(e, o);
|
|
98
97
|
_.mkdirSync(w.dirname(a), {
|
|
99
98
|
recursive: !0
|
|
100
|
-
}), _.writeFileSync(a,
|
|
99
|
+
}), _.writeFileSync(a, l, "utf-8"), i.success(`配置信息保存成功 ${a}`);
|
|
101
100
|
}, B = [
|
|
102
101
|
{ title: "GitHub", value: E.GITHUB },
|
|
103
102
|
{ title: "Gitee", value: E.GITEE }
|
|
@@ -137,7 +136,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
137
136
|
platform: e,
|
|
138
137
|
username: t
|
|
139
138
|
};
|
|
140
|
-
e || (s.platform = (await
|
|
139
|
+
e || (s.platform = (await h(v())).platform), t || (s.username = (await h(K())).username);
|
|
141
140
|
const { platform: r, username: o } = s;
|
|
142
141
|
let c = [];
|
|
143
142
|
const n = Me({
|
|
@@ -146,13 +145,13 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
146
145
|
});
|
|
147
146
|
let g = n == null ? void 0 : n.accessToken;
|
|
148
147
|
i.stage(`正在获取${o}的${r}仓库列表...`);
|
|
149
|
-
const
|
|
148
|
+
const l = {
|
|
150
149
|
username: o,
|
|
151
150
|
accessToken: g
|
|
152
151
|
};
|
|
153
152
|
switch (s.platform) {
|
|
154
153
|
case E.GITHUB: {
|
|
155
|
-
c = (await (
|
|
154
|
+
c = (await (l.accessToken ? he : Ee)(l)).data.map((m) => ({
|
|
156
155
|
name: m.name,
|
|
157
156
|
httpUrl: m.clone_url,
|
|
158
157
|
sshUrl: m.ssh_url,
|
|
@@ -161,7 +160,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
161
160
|
break;
|
|
162
161
|
}
|
|
163
162
|
case E.GITEE: {
|
|
164
|
-
c = (await (
|
|
163
|
+
c = (await (l.accessToken ? ue : fe)(l)).data.map((m) => ({
|
|
165
164
|
name: m.name,
|
|
166
165
|
httpUrl: m.html_url,
|
|
167
166
|
sshUrl: m.ssh_url,
|
|
@@ -177,7 +176,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
177
176
|
return;
|
|
178
177
|
} else
|
|
179
178
|
i.stage(`共${c.length}个仓库`);
|
|
180
|
-
const { repoUrl: a } = await
|
|
179
|
+
const { repoUrl: a } = await h({
|
|
181
180
|
name: "repoUrl",
|
|
182
181
|
type: "select",
|
|
183
182
|
message: "选择仓库",
|
|
@@ -188,23 +187,23 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
188
187
|
});
|
|
189
188
|
return a;
|
|
190
189
|
}, _e = [
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
190
|
+
p.PRE_COMMIT,
|
|
191
|
+
p.PRE_MERGE_COMMIT,
|
|
192
|
+
p.PREPARE_COMMIT_MSG,
|
|
193
|
+
p.COMMIT_MSG,
|
|
194
|
+
p.PRE_REBASE,
|
|
195
|
+
p.POST_COMMIT,
|
|
196
|
+
p.POST_MERGE,
|
|
197
|
+
p.PRE_PUSH
|
|
199
198
|
], Ie = [
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
199
|
+
p.PRE_MERGE_COMMIT,
|
|
200
|
+
p.PREPARE_COMMIT_MSG,
|
|
201
|
+
p.POST_MERGE,
|
|
202
|
+
p.PRE_PUSH,
|
|
203
|
+
p.PRE_REBASE
|
|
205
204
|
], $ = (e) => {
|
|
206
205
|
const {
|
|
207
|
-
[
|
|
206
|
+
[f.CHECK]: { [C.REVERSE_MERGE]: t }
|
|
208
207
|
} = e;
|
|
209
208
|
return t;
|
|
210
209
|
}, Te = (e) => Math.max(
|
|
@@ -214,7 +213,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
214
213
|
(s, [r, { afterHash: o, logCount: c }]) => {
|
|
215
214
|
let n = c - 1;
|
|
216
215
|
if (o) {
|
|
217
|
-
const g = t.findIndex((
|
|
216
|
+
const g = t.findIndex((l) => l.hash === o);
|
|
218
217
|
g !== -1 && (i.info(
|
|
219
218
|
`${r} 设置 只检测 ${o} 之后的日志 即 下标 [0 - ${g})`
|
|
220
219
|
), n = Math.min(n, g - 1));
|
|
@@ -241,7 +240,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
241
240
|
);
|
|
242
241
|
return n || i.skip(`跳过: 允许${r} => ${o}`), n;
|
|
243
242
|
}, Ge = {
|
|
244
|
-
[
|
|
243
|
+
[f.CHECK]: {
|
|
245
244
|
[C.REVERSE_MERGE]: {
|
|
246
245
|
[/^test$/.source]: {
|
|
247
246
|
includeRebase: !0,
|
|
@@ -257,15 +256,17 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
257
256
|
type: {
|
|
258
257
|
alias: "t",
|
|
259
258
|
describe: "初始化类型",
|
|
260
|
-
choices: [
|
|
261
|
-
default:
|
|
259
|
+
choices: [d.DEFAULT, d.CLONE_CONFIG],
|
|
260
|
+
default: d.DEFAULT
|
|
262
261
|
}
|
|
263
262
|
}), ke = (e) => {
|
|
264
|
-
N(
|
|
263
|
+
N(
|
|
264
|
+
`npm pkg set scripts.postprepare="${e} init"`
|
|
265
|
+
);
|
|
265
266
|
}, j = async (e) => {
|
|
266
267
|
const { type: t } = e;
|
|
267
268
|
switch (t) {
|
|
268
|
-
case
|
|
269
|
+
case d.DEFAULT: {
|
|
269
270
|
const { rootDir: s, isSubCommand: r, _: o } = e, c = `${e.$0}${r ? ` ${o[0]}` : ""}`;
|
|
270
271
|
return await ee({
|
|
271
272
|
hookNames: Ie,
|
|
@@ -277,8 +278,8 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
277
278
|
}
|
|
278
279
|
});
|
|
279
280
|
}
|
|
280
|
-
case
|
|
281
|
-
const { rootDir: s } = e, { platform: r } = await
|
|
281
|
+
case d.CLONE_CONFIG: {
|
|
282
|
+
const { rootDir: s } = e, { platform: r } = await h(v()), { username: o } = await h(K()), { accessToken: c } = await h($e);
|
|
282
283
|
return Ce({
|
|
283
284
|
rootDir: s,
|
|
284
285
|
platform: r,
|
|
@@ -290,7 +291,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
290
291
|
throw new Error(`未知的初始化类型: ${t}`);
|
|
291
292
|
}
|
|
292
293
|
}, be = {
|
|
293
|
-
command:
|
|
294
|
+
command: f.INIT,
|
|
294
295
|
describe: "初始化配置文件",
|
|
295
296
|
options: Pe(),
|
|
296
297
|
handler: j
|
|
@@ -317,7 +318,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
317
318
|
{ stdio: "inherit" }
|
|
318
319
|
), i.success(`克隆${t}成功`);
|
|
319
320
|
}, Be = {
|
|
320
|
-
command: `${
|
|
321
|
+
command: `${f.CLONE} <platform> <username>`,
|
|
321
322
|
describe: "从选择的git平台克隆代码",
|
|
322
323
|
options: we(),
|
|
323
324
|
positionals: ye(),
|
|
@@ -370,7 +371,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
370
371
|
configMap: c,
|
|
371
372
|
currentBranch: t
|
|
372
373
|
})) {
|
|
373
|
-
const { fromBranch: g, toBranch:
|
|
374
|
+
const { fromBranch: g, toBranch: l = t } = o, a = `禁止${g}被合并: ${g} => ${l}
|
|
374
375
|
|
|
375
376
|
--------- 建议 ---------
|
|
376
377
|
可以通过
|
|
@@ -388,7 +389,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
388
389
|
const s = $(e), r = Te(s);
|
|
389
390
|
if (!r)
|
|
390
391
|
return;
|
|
391
|
-
const o = ae({ count: r }), c = Se(s, o), n = o.map((a) => a.hash),
|
|
392
|
+
const o = ae({ count: r }), c = Se(s, o), n = o.map((a) => a.hash), l = ie({
|
|
392
393
|
/** 考虑reflog存在往复切换 */
|
|
393
394
|
count: r + 30,
|
|
394
395
|
filterItem: (a) => n.includes(a.hash)
|
|
@@ -398,7 +399,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
398
399
|
);
|
|
399
400
|
o.forEach((a, m) => {
|
|
400
401
|
var P;
|
|
401
|
-
const O = a.mergeInfo || ((P =
|
|
402
|
+
const O = a.mergeInfo || ((P = l[a.hash]) == null ? void 0 : P.mergeInfo);
|
|
402
403
|
O && Object.entries(s).forEach(([k]) => {
|
|
403
404
|
const b = c[k];
|
|
404
405
|
if (m > b) {
|
|
@@ -500,7 +501,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
500
501
|
throw new Error(`不支持的检测类型${s}`);
|
|
501
502
|
}
|
|
502
503
|
}, He = {
|
|
503
|
-
command: `${
|
|
504
|
+
command: `${f.CHECK} <type>`,
|
|
504
505
|
describe: "检查git操作",
|
|
505
506
|
options: Ne(),
|
|
506
507
|
positionals: Le(),
|
|
@@ -516,7 +517,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
516
517
|
}), J = async (e) => {
|
|
517
518
|
const { name: t, rootDir: s, args: r } = e;
|
|
518
519
|
switch (t) {
|
|
519
|
-
case
|
|
520
|
+
case p.PRE_MERGE_COMMIT: {
|
|
520
521
|
const o = await R(e);
|
|
521
522
|
M({
|
|
522
523
|
config: o,
|
|
@@ -525,7 +526,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
525
526
|
});
|
|
526
527
|
break;
|
|
527
528
|
}
|
|
528
|
-
case
|
|
529
|
+
case p.PREPARE_COMMIT_MSG: {
|
|
529
530
|
const o = await R(e);
|
|
530
531
|
M({
|
|
531
532
|
config: o,
|
|
@@ -535,8 +536,8 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
535
536
|
});
|
|
536
537
|
break;
|
|
537
538
|
}
|
|
538
|
-
case
|
|
539
|
-
case
|
|
539
|
+
case p.POST_MERGE:
|
|
540
|
+
case p.PRE_PUSH: {
|
|
540
541
|
const o = await R(e);
|
|
541
542
|
M({
|
|
542
543
|
config: o,
|
|
@@ -545,7 +546,7 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
545
546
|
});
|
|
546
547
|
break;
|
|
547
548
|
}
|
|
548
|
-
case
|
|
549
|
+
case p.PRE_REBASE: {
|
|
549
550
|
const o = await R(e);
|
|
550
551
|
M({
|
|
551
552
|
config: o,
|
|
@@ -558,25 +559,25 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
558
559
|
i.error(`${t} 当前未支持处理`);
|
|
559
560
|
}
|
|
560
561
|
}, Ke = {
|
|
561
|
-
command: `${
|
|
562
|
+
command: `${f.HOOKS} <name> [args...]`,
|
|
562
563
|
describe: "git钩子回调",
|
|
563
564
|
options: De(),
|
|
564
565
|
positionals: ve(),
|
|
565
566
|
handler: J
|
|
566
|
-
},
|
|
567
|
+
}, Ye = async (e, t) => {
|
|
567
568
|
switch (e) {
|
|
568
|
-
case
|
|
569
|
+
case f.INIT:
|
|
569
570
|
return j(t);
|
|
570
|
-
case
|
|
571
|
+
case f.CLONE:
|
|
571
572
|
return V(t);
|
|
572
|
-
case
|
|
573
|
+
case f.HOOKS:
|
|
573
574
|
return J(t);
|
|
574
|
-
case
|
|
575
|
+
case f.CHECK:
|
|
575
576
|
return q(t);
|
|
576
577
|
default:
|
|
577
578
|
throw new Error(`不支持的命令 ${e}`);
|
|
578
579
|
}
|
|
579
|
-
}, { version: je, description: Ve } = T,
|
|
580
|
+
}, { version: je, description: Ve } = T, Ze = {
|
|
580
581
|
describe: Ve,
|
|
581
582
|
version: je,
|
|
582
583
|
subcommands: [
|
|
@@ -591,11 +592,11 @@ const pe = 3e4, y = Math.random(), U = {
|
|
|
591
592
|
export {
|
|
592
593
|
C,
|
|
593
594
|
E as G,
|
|
594
|
-
|
|
595
|
-
|
|
595
|
+
d as I,
|
|
596
|
+
f as S,
|
|
596
597
|
K as a,
|
|
597
598
|
Oe as b,
|
|
598
|
-
|
|
599
|
+
Ze as c,
|
|
599
600
|
j as d,
|
|
600
601
|
be as e,
|
|
601
602
|
Be as f,
|
|
@@ -606,6 +607,6 @@ export {
|
|
|
606
607
|
Ke as k,
|
|
607
608
|
q as l,
|
|
608
609
|
He as m,
|
|
609
|
-
|
|
610
|
+
Ye as n,
|
|
610
611
|
u as o
|
|
611
612
|
};
|
package/es/index.mjs
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { o as
|
|
3
|
-
import { a as
|
|
2
|
+
import { o as i, C as l, G as t, I as d, S as c, m as C, l as p, f, h, c as u, b as k, n as I, k as E, j as b, e as H, d as g } from "./index-ce13e9d5.js";
|
|
3
|
+
import { a as S } from "./index-f36fe1a6.js";
|
|
4
4
|
import "@done-coding/cli-utils";
|
|
5
|
-
import "node:child_process";
|
|
6
5
|
import "node:fs";
|
|
7
6
|
import "node:path";
|
|
8
7
|
import "@done-coding/request-axios";
|
|
9
8
|
import "axios";
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
i as CheckReverseMergeWayEnum,
|
|
12
11
|
l as CheckTypeEnum,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
12
|
+
t as GitPlatformEnum,
|
|
13
|
+
d as InitTypeEnum,
|
|
14
|
+
c as SubcommandEnum,
|
|
15
|
+
C as checkCommandCliInfo,
|
|
16
|
+
p as checkHandler,
|
|
17
|
+
f as cloneCommandCliInfo,
|
|
18
|
+
h as cloneHandler,
|
|
19
|
+
u as commandCliInfo,
|
|
20
|
+
S as crateAsSubcommand,
|
|
21
|
+
k as getTargetRepoUrl,
|
|
22
|
+
I as handler,
|
|
23
|
+
E as hooksCommandCliInfo,
|
|
24
|
+
b as hooksHandler,
|
|
25
|
+
H as initCommandCliInfo,
|
|
26
|
+
g as initHandler
|
|
28
27
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@done-coding/cli-git",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.13-alpha.1",
|
|
4
4
|
"description": "git跨平台操作命令行工具",
|
|
5
5
|
"private": false,
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"license": "MIT",
|
|
53
53
|
"sideEffects": false,
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@done-coding/cli-inject": "0.5.
|
|
55
|
+
"@done-coding/cli-inject": "0.5.21-alpha.1",
|
|
56
56
|
"@types/node": "^18.0.0",
|
|
57
57
|
"@types/yargs": "^17.0.28",
|
|
58
58
|
"rimraf": "^6.0.1",
|
|
59
|
-
"typescript": "^5.
|
|
59
|
+
"typescript": "^5.8.3",
|
|
60
60
|
"vite": "^4.4.11",
|
|
61
61
|
"vite-plugin-dts": "^3.6.0"
|
|
62
62
|
},
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"node": ">=18.0.0"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@done-coding/cli-utils": "0.8.1",
|
|
67
|
+
"@done-coding/cli-utils": "0.8.2-alpha.1",
|
|
68
68
|
"@done-coding/request-axios": "^1.2.2",
|
|
69
69
|
"axios": "^1.8.4"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "660e39fc523e4eba1ea621e3c59122f98015a2de"
|
|
72
72
|
}
|