@aaronshaf/ger 1.2.4 → 1.2.6
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 +10 -0
- package/package.json +1 -1
- package/src/commands/branch.ts +6 -2
- package/src/types.d.ts +1 -0
- package/src/utils.ts +2 -2
package/README.md
CHANGED
package/package.json
CHANGED
package/src/commands/branch.ts
CHANGED
|
@@ -116,10 +116,14 @@ function output(
|
|
|
116
116
|
|
|
117
117
|
const approvalText = approvals.join(isVerbose ? "\n" : ", ");
|
|
118
118
|
|
|
119
|
+
const topicText = gerritData.topic
|
|
120
|
+
? ` ${grey(`(${gerritData.topic})`)}`
|
|
121
|
+
: "";
|
|
122
|
+
|
|
119
123
|
if (isVerbose) {
|
|
120
124
|
table.push([
|
|
121
|
-
`${bold(localBranch)}\n${localBranchDataMap[localBranch].shortHash}`,
|
|
122
|
-
labels.join(" ")
|
|
125
|
+
`${bold(localBranch)}${topicText}\n${localBranchDataMap[localBranch].shortHash}`,
|
|
126
|
+
`${labels.join(" ")}`,
|
|
123
127
|
`${subject}\n${yellow(gerritData.url.replace("https://", ""))}`,
|
|
124
128
|
approvalText,
|
|
125
129
|
]);
|
package/src/types.d.ts
CHANGED
package/src/utils.ts
CHANGED
|
@@ -12,9 +12,9 @@ export function bold(text: string) {
|
|
|
12
12
|
return `\x1b[1m${text}\x1b[0m`;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
// grey background
|
|
15
|
+
// grey with transparent background
|
|
16
16
|
export function grey(text: string) {
|
|
17
|
-
return `\x1b[
|
|
17
|
+
return `\x1b[37m\x1b[40m${text}\x1b[0m`;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
// brown with transparent background
|