Skip to content

Commit 8c69de5

Browse files
committed
refactor: update ls, status reports
1 parent 99cff6f commit 8c69de5

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/commands/ls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export default class extends Command {
7272
},
7373
"previousRelease": {
7474
"title": ansi.hl( "PREVIOUS\nRELEASE" ),
75-
"width": 23,
75+
"width": 25,
7676
"align": "end",
7777
"headerAlign": "center",
7878
},

lib/commands/status.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Clone wiki: ${ ansi.hl( upstream.wikiSshCloneUrl ) }
102102
"title": ansi.hl( "SYNC STATUS" ),
103103
"headerAlign": "center",
104104
"headerValign": "end",
105-
"width": 20,
105+
"width": 13,
106106
"align": "end",
107107
"format": status => {
108108
if ( status.upstream ) {
@@ -113,14 +113,14 @@ Clone wiki: ${ ansi.hl( upstream.wikiSshCloneUrl ) }
113113
const text = [];
114114

115115
if ( status.behind ) {
116-
text.push( "pull: " + ansi.error( ` ${ status.behind } ` ) );
116+
text.push( "pull:" + ansi.error( ` ${ status.behind } ` ) );
117117
}
118118

119119
if ( status.ahead ) {
120-
text.push( "push: " + ansi.error( ` ${ status.ahead } ` ) );
120+
text.push( "push:" + ansi.error( ` ${ status.ahead } ` ) );
121121
}
122122

123-
return text.join( ", " );
123+
return text.join( "\n" );
124124
}
125125
}
126126
else {
@@ -132,7 +132,7 @@ Clone wiki: ${ ansi.hl( upstream.wikiSshCloneUrl ) }
132132
"title": ansi.hl( "PREVIOUS\nRELEASE" ),
133133
"headerAlign": "center",
134134
"headerValign": "end",
135-
"width": 15,
135+
"width": 25,
136136
"align": "end",
137137
"format": status => {
138138
if ( pkg.isReleaseEnabled ) {
@@ -154,7 +154,7 @@ Clone wiki: ${ ansi.hl( upstream.wikiSshCloneUrl ) }
154154
"title": ansi.hl( "UNRELEASED\nCOMMITS" ),
155155
"headerAlign": "center",
156156
"headerValign": "end",
157-
"width": 15,
157+
"width": 12,
158158
"align": "end",
159159
"format": status => {
160160
if ( pkg.isReleaseEnabled ) {

0 commit comments

Comments
 (0)