@@ -255,6 +255,12 @@ const BR = branch();
255255let HAS_GIT = hasTool ( 'git' ) ;
256256let HAS_PY = hasTool ( 'python' ) ;
257257
258+ // The same dim hyphen rule the footer uses, drawn between the menu's five
259+ // job groups (1-4 build/refresh, 5-8 local preview & status, 9-11 verify &
260+ // health, 12-15 content, 16-18 the menu itself) — rhythm for the eye,
261+ // nothing to read, no renumbering.
262+ const RULE = DIM + new Array ( 51 ) . join ( '-' ) + OFF ;
263+
258264function showBanner ( ) {
259265 clear ( ) ;
260266 console . log ( TITLE + BOX + OFF ) ;
@@ -281,20 +287,24 @@ function showBanner() {
281287 console . log ( ' ' + ITEM + '2.' + OFF + ' Rebuild search index' + DIM + ' (search words only - a new book still needs option 4)' + OFF ) ;
282288 console . log ( ' ' + ITEM + '3.' + OFF + ' Refresh freshness' + DIM + ' (quick update for data-only changes)' + OFF ) ;
283289 console . log ( ' ' + ITEM + '4.' + OFF + ' Refresh book data' + DIM + ' (after adding or changing a book)' + OFF ) ;
290+ console . log ( RULE ) ;
284291 const dim5 = HAS_PY ? '' : DIM , dim5Off = HAS_PY ? '' : OFF ;
285292 const dimG = HAS_GIT ? '' : DIM , dimGOff = HAS_GIT ? '' : OFF ;
286293 console . log ( ' ' + ( HAS_PY ? ITEM : DIM ) + '5.' + OFF + dim5 + ' Preview the site' + DIM + ' (opens in your browser, like the live one)' + OFF + dim5Off ) ;
287294 const ch6 = changedHint ( ) ; // the hint's own colour signals the state: amber when files await, dim when clean
288295 console . log ( ' ' + ( HAS_GIT ? ITEM : DIM ) + '6.' + OFF + dimG + " What's changed" + DIM + ' ' + ( ch6 . color || DIM ) + ch6 . text + OFF + dimGOff ) ;
289296 console . log ( ' ' + ITEM + '7.' + OFF + ' Open the folder' + DIM + ' (the codebase folder in Explorer)' + OFF ) ;
290297 console . log ( ' ' + ITEM + '8.' + OFF + ' Build and preview' + DIM + ' (build, then open the preview)' + OFF ) ;
298+ console . log ( RULE ) ;
291299 console . log ( ' ' + ITEM + '9.' + OFF + ' Run the checks' + DIM + ' (the pre-commit verification battery)' + OFF ) ;
292300 console . log ( ' ' + ITEM + '10.' + OFF + ' About / health check' + DIM + ' (versions and tools on this machine)' + OFF ) ;
293301 console . log ( ' ' + ITEM + '11.' + OFF + ' Check the live site' + DIM + ' (is the published site up to date?)' + OFF ) ;
302+ console . log ( RULE ) ;
294303 console . log ( ' ' + ITEM + '12.' + OFF + ' Open the notes folder' + DIM + ' (authors + works markdown)' + OFF ) ;
295304 console . log ( ' ' + ITEM + '13.' + OFF + ' New book' + DIM + ' (copy a template + checklist)' + OFF ) ;
296305 console . log ( ' ' + ITEM + '14.' + OFF + ' Finish a book registration' + DIM + ' (fill the registry row)' + OFF ) ;
297306 console . log ( ' ' + ITEM + '15.' + OFF + ' Add an author' + DIM + ' (append to the authors registry)' + OFF ) ;
307+ console . log ( RULE ) ;
298308 // the hint carries the state: dim when on, amber when muted (the warn colour
299309 // the footer used to show for it)
300310 console . log ( ' ' + ITEM + '16.' + OFF + ' Sound on/off' + ( muted ? WARN : DIM ) + ' (now ' + ( muted ? 'off' : 'on' ) + ')' + OFF ) ;
0 commit comments