Spinner info#476
Conversation
|
it looks like the validation harness is choking on a glob Im hoping the error is obvious to you guys. ''' Fix YAML
YAML
|
Read VNG_SPINNER_INFO from the environment and append it to the spinner header. This allows build scripts to inject context-specific metadata (like worktree+target @sha) directly into the live status line. Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Extend VNG_SPINNER_INFO to allow user to widen the spinner wave, by prepending the info string with a width: $ VNG_SPINNER_INFO=50:foo vng -bv ▃▄▅▆▇██▇▆▅▄▃▂▁▁▂▃▄▅▆▇██▇▆▅▄▃▂▁▁▂▃▄▅▆▇██▇▆▅▄▃▂▁▁▂▃▄ ⚙️c building kernel [foo] (0 sec) DESCEND objtool The longer wave is vaguely pleasant to see from across the room. Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
make vng's spinner display scriptable content,
via envar: VNG_SPINNER_INFO
this lets a long-running multi-tree, multi-build batch build
provide custom info to the spinner, like work-tree, branch,
sha -dirty, config-name, config-sha etc.
vng then displays user info if user cares to add it.
while here, add a feature - if envar val matches ^\d+:.+$
the leading number is stripped and used to change the width.
$ VNG_SPINNER_INFO=20:foo vng -bv
▅▆▇██▇▆▅▄▃▂▁▁▂▃▄ ⚙️c building kernel [foo] (1 sec)
DESCEND objtool
INSTALL libsubcmd_headers
▇▆▅▄▃▂▁▁▂▃▄▅▆▇██ ⚙️c building kernel [foo] (1 sec)
Kernel: arch/x86/boot/bzImage is ready (#85)
the longer wave is vaguely pleasant to see from across the room.