done-coding-git 0.6.15 → 0.7.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
CHANGED
|
@@ -314,7 +314,7 @@ node es/cli.mjs --help
|
|
|
314
314
|
|
|
315
315
|
## 许可证
|
|
316
316
|
|
|
317
|
-
MIT © [
|
|
317
|
+
MIT © [done-coding](https://github.com/done-coding)
|
|
318
318
|
|
|
319
319
|
## 包依赖关系
|
|
320
320
|
|
|
@@ -353,5 +353,5 @@ dc-git check reverse-merge
|
|
|
353
353
|
|
|
354
354
|
- [主 CLI 工具](https://www.npmjs.com/package/@done-coding/cli)
|
|
355
355
|
- [配置工具包](https://www.npmjs.com/package/@done-coding/cli-config) - 使用本包的检测功能
|
|
356
|
-
- [
|
|
356
|
+
- [Github 仓库](https://github.com/done-coding/done-coding-cli)
|
|
357
357
|
- [更新日志](./CHANGELOG.md)
|
package/es/cli.mjs
CHANGED
package/es/helpers.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { g as s, G as n, a as i, h as m } from "./index-
|
|
2
|
+
import { g as s, G as n, a as i, h as m } from "./index-a372a4d2.js";
|
|
3
3
|
import { outputConsole as o, xPrompts as r } from "@done-coding/cli-utils";
|
|
4
4
|
import "node:fs";
|
|
5
5
|
import "node:path";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { c as
|
|
2
|
+
import { c as e, i as t } from "./index-a372a4d2.js";
|
|
3
3
|
import { createMainCommand as s, createSubcommand as r } from "@done-coding/cli-utils";
|
|
4
4
|
const {
|
|
5
5
|
cliConfig: { moduleName: o }
|
|
6
|
-
} = t,
|
|
6
|
+
} = t, a = (n = !1) => {
|
|
7
7
|
const c = n ? o : void 0, m = `$0${n ? ` ${o}` : ""} <command> [options]`;
|
|
8
8
|
return { command: c, usage: m };
|
|
9
9
|
}, u = async () => s({
|
|
10
|
-
...
|
|
11
|
-
...
|
|
10
|
+
...e,
|
|
11
|
+
...a()
|
|
12
12
|
}), f = () => r({
|
|
13
|
-
...
|
|
14
|
-
...
|
|
13
|
+
...e,
|
|
14
|
+
...a(!0),
|
|
15
15
|
// git 子命令不显示描述信息 即不在父命令的描述信息中显示
|
|
16
16
|
describe: !1
|
|
17
17
|
});
|
package/es/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
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-
|
|
3
|
-
import { a as S } from "./index-
|
|
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-a372a4d2.js";
|
|
3
|
+
import { a as S } from "./index-277704bc.js";
|
|
4
4
|
import "@done-coding/cli-utils";
|
|
5
5
|
import "node:fs";
|
|
6
6
|
import "node:path";
|
|
@@ -17,7 +17,7 @@ export {
|
|
|
17
17
|
f as cloneCommandCliInfo,
|
|
18
18
|
h as cloneHandler,
|
|
19
19
|
u as commandCliInfo,
|
|
20
|
-
S as
|
|
20
|
+
S as createAsSubcommand,
|
|
21
21
|
k as getTargetRepoUrl,
|
|
22
22
|
I as handler,
|
|
23
23
|
E as hooksCommandCliInfo,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "done-coding-git",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "git跨平台操作命令行工具",
|
|
5
5
|
"private": false,
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"license": "MIT",
|
|
43
43
|
"sideEffects": false,
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@done-coding/cli-inject": "0.
|
|
45
|
+
"@done-coding/cli-inject": "0.6.0",
|
|
46
46
|
"@types/node": "^18.0.0",
|
|
47
47
|
"@types/yargs": "^17.0.28",
|
|
48
48
|
"typescript": "^5.8.3",
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
"vite-plugin-dts": "^3.6.0"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@done-coding/cli-utils": "0.
|
|
53
|
+
"@done-coding/cli-utils": "0.9.0",
|
|
54
54
|
"@done-coding/request-axios": "^1.2.2",
|
|
55
55
|
"axios": "^1.8.4"
|
|
56
56
|
},
|
|
57
57
|
"engines": {
|
|
58
58
|
"node": ">=18.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "d72c025c7c59964ef0617891bec9e34df015bd47",
|
|
61
61
|
"scripts": {}
|
|
62
62
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export declare type CloneOptions = GitParamsInfo;
|
|
|
48
48
|
export declare const commandCliInfo: Omit<CliInfo, "usage">;
|
|
49
49
|
|
|
50
50
|
/** 作为子命令创建 */
|
|
51
|
-
export declare const
|
|
51
|
+
export declare const createAsSubcommand: () => CommandModule<{}, {}>;
|
|
52
52
|
|
|
53
53
|
/** 获取目标仓库地址 */
|
|
54
54
|
export declare const getTargetRepoUrl: ({ platform: platformInit, username: usernameInit, }?: Partial<GitParamsInfo>) => Promise<any>;
|