Skip to content

Conversation

@zdykstra
Copy link
Member

@zdykstra zdykstra commented Feb 7, 2021

Move the helper functions from zfsbootmenu-help.sh:

  • center
  • colorize

zfsbootmenu-preview.sh had a lot of legacy code / procedures in it, before zfsbootmenu-lib.sh was as fleshed out as it is now. Clean up the usage / flow dramatically to use helper functions where possible.

zfs-chroot.sh now colorizes text when entering the chroot to add 37 pieces of flair to the output.

timed_prompt, resume_prompt, and the snapshot manipulation user input sections in zfsbootmenu.sh could possibly use an update to use colorize - but with the possible future use of dialog, that might be wasted effort. Thoughts?

Closes #115

@ahesford
Copy link
Member

ahesford commented Feb 7, 2021

If you want 37 pieces of flair, why don't you just make that the minimum?

@zdykstra zdykstra changed the title [WIP] Move more helper functions to -lib, cleanup scripts Move more helper functions to -lib, cleanup scripts Feb 7, 2021
@zdykstra zdykstra merged commit 73dc5c2 into master Feb 8, 2021
@zdykstra zdykstra deleted the colorize branch February 8, 2021 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move colorize() to zfsbootmenu-lib.sh

3 participants