From b8fa5d5b7ec6080bc9dcdcc96fbe2b61ab795e1a Mon Sep 17 00:00:00 2001 From: kinfuy Date: Tue, 28 Mar 2023 22:27:58 +0800 Subject: [PATCH] fix: type & gacm ls current --- dist/gacm.js | 2 +- dist/package.json | 2 +- package/commands/gacm/useLs.ts | 4 ++-- package/type/shell.type.ts | 5 +++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/dist/gacm.js b/dist/gacm.js index 66bb771..a7eb3b4 100755 --- a/dist/gacm.js +++ b/dist/gacm.js @@ -261,7 +261,7 @@ const useLs = async () => { const length = Math.max(...userList.users.map((user) => user.alias.length + (user.alias !== user.name ? user.name.length : 0))) + 3; const prefix = " "; const messages = userList.users.map((user) => { - const currect = user.name === currectUser && user.email === currectEmail ? `${kolorist.green("*")}` : " "; + const currect = user.name === currectUser && user.email === currectEmail ? `${kolorist.green("\u25A0")} ` : " "; const isSame = user.alias === user.name; return `${prefix + currect}${isSame ? user.alias : `${user.alias}(${kolorist.gray(user.name)})`}${geneDashLine(user.name, length)}${user.email}`; }); diff --git a/dist/package.json b/dist/package.json index 2882296..5fb9e0a 100644 --- a/dist/package.json +++ b/dist/package.json @@ -24,4 +24,4 @@ "node-fetch": "2.6.6", "prompts": "^2.4.2" } -} \ No newline at end of file +} diff --git a/package/commands/gacm/useLs.ts b/package/commands/gacm/useLs.ts index 69b4059..6c49596 100644 --- a/package/commands/gacm/useLs.ts +++ b/package/commands/gacm/useLs.ts @@ -49,8 +49,8 @@ export const useLs = async () => { const messages = userList.users.map((user) => { const currect = user.name === currectUser && user.email === currectEmail - ? `${green('*')}` - : ' '; + ? `${green('■')} ` + : ' '; const isSame = user.alias === user.name; diff --git a/package/type/shell.type.ts b/package/type/shell.type.ts index 46feb57..c4362e8 100644 --- a/package/type/shell.type.ts +++ b/package/type/shell.type.ts @@ -21,9 +21,10 @@ export interface UserOldInfoJson extends Record { export type PackageManagertype = 'pnpm' | 'npm' | 'cnpm' | 'yarn'; export interface NrmCmd { - registry: string + packageManager: PackageManagertype } -export interface TestCmd extends NrmCmd { +export interface TestCmd { + registry: string all: boolean }