Skip to content

Commit 62fe0c1

Browse files
authored
chore: improve cli help menu (#294)
* chore: improve coloring * adjust * changes * Create sour-tomatoes-sin.md changeset * fix conflicts * use next * use full release * fix * Update packages/cli/package.json
1 parent f1008b7 commit 62fe0c1

File tree

4 files changed

+58
-265
lines changed

4 files changed

+58
-265
lines changed

.changeset/sour-tomatoes-sin.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"sv": patch
3+
---
4+
5+
chore: improve cli help menu

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"@types/degit": "^2.8.6",
3838
"@types/ps-tree": "^1.1.6",
3939
"@types/tar-fs": "^2.0.4",
40-
"commander": "^12.1.0",
40+
"commander": "^13.0.0",
4141
"degit": "^2.8.4",
4242
"empathic": "^1.0.0",
4343
"package-manager-detector": "^0.2.7",

packages/cli/utils/common.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,13 @@ export const helpConfig: HelpConfiguration = {
4949
}
5050

5151
return option.flags;
52-
}
52+
},
53+
styleTitle: (str) => pc.underline(str),
54+
styleCommandText: (str) => pc.red(str),
55+
styleDescriptionText: (str) => pc.gray(str),
56+
styleOptionText: (str) => pc.white(str),
57+
styleArgumentText: (str) => pc.white(str),
58+
styleSubcommandText: (str) => pc.red(str)
5359
};
5460

5561
function formatDescription(arg: Option | Argument): string {

0 commit comments

Comments
 (0)