Skip to content

Commit

Permalink
fix: gacm gnrm use no args error
Browse files Browse the repository at this point in the history
  • Loading branch information
alqmc committed Nov 11, 2022
1 parent 65062d0 commit 90a3cb6
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions dist/gacm.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const log = {
};

var name$1 = "gacm";
var version$1 = "1.2.3";
var version$1 = "1.2.4";
var description$1 = "gacm";
var scripts = {
build: "gulp --require sucrase/register/ts --gulpfile build/gulpfile.ts",
Expand All @@ -67,6 +67,7 @@ var devDependencies = {
"@types/gulp": "^4.0.9",
"@types/node": "^17.0.21",
"@types/prompts": "^2.0.14",
cac: "^6.7.14",
changeloger: "0.1.0",
commitizen: "^4.1.2",
"fs-extra": "^10.1.0",
Expand All @@ -81,7 +82,6 @@ var devDependencies = {
typescript: "^4.6.3"
};
var dependencies$1 = {
cac: "^6.7.14",
execa: "5.1.1",
kolorist: "^1.5.1",
minimist: "^1.2.6",
Expand Down Expand Up @@ -202,7 +202,7 @@ const printMessages = (messages) => {
};

var name = "gacm";
var version = "1.2.3";
var version = "1.2.4";
var description = "git account manage";
var keywords = [
"git",
Expand Down Expand Up @@ -354,7 +354,7 @@ const useVersion = () => {
const program = cac__default["default"]("gacm");
program.version(useVersion());
program.command("ls", "\u5F53\u524D\u7528\u6237\u5217\u8868").action(useLs);
program.command("use <name>", "\u5207\u6362\u7528\u6237").option("-l, --local", "\u5F53\u524D\u7528\u6237").option("-g, --global", "\u5168\u5C40\u7528\u6237").option("-s, --system", "\u7CFB\u7EDF\u7528\u6237").action(useUse);
program.command("use [name]", "\u5207\u6362\u7528\u6237").option("-l, --local", "\u5F53\u524D\u7528\u6237").option("-g, --global", "\u5168\u5C40\u7528\u6237").option("-s, --system", "\u7CFB\u7EDF\u7528\u6237").action(useUse);
program.command("add", "\u6DFB\u52A0\u7528\u6237").option("-n, --name <name>", "\u7528\u6237\u540D\u79F0").option("-e, --email <email>", "\u7528\u6237\u90AE\u7BB1").option("-a, --alias <alias>", "\u7528\u6237\u522B\u540D").action(useAdd);
program.command("alias <origin> <target>", "\u6DFB\u52A0\u522B\u540D").action(useAlias);
program.command("delete <name>", "\u5220\u9664\u7528\u6237").action(useDelete);
Expand Down
8 changes: 4 additions & 4 deletions dist/gnrm.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var prompts__default = /*#__PURE__*/_interopDefaultLegacy(prompts);
var execa__default = /*#__PURE__*/_interopDefaultLegacy(execa);

var name$1 = "gacm";
var version$1 = "1.2.3";
var version$1 = "1.2.4";
var description$1 = "git account manage";
var keywords = [
"git",
Expand Down Expand Up @@ -82,7 +82,7 @@ const log = {
};

var name = "gacm";
var version = "1.2.3";
var version = "1.2.4";
var description = "gacm";
var scripts = {
build: "gulp --require sucrase/register/ts --gulpfile build/gulpfile.ts",
Expand All @@ -107,6 +107,7 @@ var devDependencies = {
"@types/gulp": "^4.0.9",
"@types/node": "^17.0.21",
"@types/prompts": "^2.0.14",
cac: "^6.7.14",
changeloger: "0.1.0",
commitizen: "^4.1.2",
"fs-extra": "^10.1.0",
Expand All @@ -121,7 +122,6 @@ var devDependencies = {
typescript: "^4.6.3"
};
var dependencies = {
cac: "^6.7.14",
execa: "5.1.1",
kolorist: "^1.5.1",
minimist: "^1.2.6",
Expand Down Expand Up @@ -424,7 +424,7 @@ const useDelete = async (name) => {
const program = cac__default["default"]("gnrm");
program.version(useVersion());
program.command("ls", "\u5F53\u524D\u7528\u6237\u5217\u8868").option("-p, --packageManager <packageManager>", "\u67E5\u770B\u5BF9\u5E94\u5305\u7BA1\u7406\u5668\uFF1A\u9ED8\u8BA4npm").action(useLs);
program.command("use <name>", "\u5207\u6362\u955C\u50CF\u6E90").option("-p, --packageManager <packageManager>", "\u8BBE\u7F6E\u5BF9\u5E94\u5305\u7BA1\u7406\u5668\uFF1A\u9ED8\u8BA4npm").action(useUse);
program.command("use [name]", "\u5207\u6362\u955C\u50CF\u6E90").option("-p, --packageManager <packageManager>", "\u8BBE\u7F6E\u5BF9\u5E94\u5305\u7BA1\u7406\u5668\uFF1A\u9ED8\u8BA4npm").action(useUse);
program.command("add", "\u6DFB\u52A0\u955C\u50CF").option("-n, --name <name>", "\u955C\u50CF\u540D\u79F0").option("-r, --registry <registry>", "\u955C\u50CF\u5730\u5740").option("-a, --alias <alias>", "\u955C\u50CF\u522B\u540D").action(useAdd);
program.command("alias <origin> <target>", "\u955C\u50CF\u6DFB\u52A0\u522B\u540D").action(useAlias);
program.command("delete <name>", "\u5220\u9664\u955C\u50CF").action(useDelete);
Expand Down
2 changes: 1 addition & 1 deletion dist/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gacm",
"version": "1.2.3",
"version": "1.2.4",
"private": false,
"description": "git account manage",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gacm",
"version": "1.2.3",
"version": "1.2.4",
"description": "gacm",
"scripts": {
"build": "gulp --require sucrase/register/ts --gulpfile build/gulpfile.ts",
Expand All @@ -25,6 +25,7 @@
"@types/gulp": "^4.0.9",
"@types/node": "^17.0.21",
"@types/prompts": "^2.0.14",
"cac": "^6.7.14",
"changeloger": "0.1.0",
"commitizen": "^4.1.2",
"fs-extra": "^10.1.0",
Expand All @@ -39,7 +40,6 @@
"typescript": "^4.6.3"
},
"dependencies": {
"cac": "^6.7.14",
"execa": "5.1.1",
"kolorist": "^1.5.1",
"minimist": "^1.2.6",
Expand Down
2 changes: 1 addition & 1 deletion package/gacm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ program.version(useVersion());
program.command('ls', '当前用户列表').action(useLs);

program
.command('use <name>', '切换用户')
.command('use [name]', '切换用户')
.option('-l, --local', '当前用户')
.option('-g, --global', '全局用户')
.option('-s, --system', '系统用户')
Expand Down
2 changes: 1 addition & 1 deletion package/gnrm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ program
.action(useLs);

program
.command('use <name>', '切换镜像源')
.command('use [name]', '切换镜像源')
.option('-p, --packageManager <packageManager>', '设置对应包管理器:默认npm')
.action(useUse);

Expand Down
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gacm",
"version": "1.2.3",
"version": "1.2.4",
"private": false,
"description": "git account manage",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 90a3cb6

Please sign in to comment.