po-util: Refactored, Modular, and Cross-Compatiblepo - The Future of
When I first created po-util, it was a single script,
po-util.sh, that could be "installed" on Mac and Linux.
It soon became very cumbersome, and I chose to split po-util into two repositories, po-util and homebrew-po.
Maintaining the two repositories was tedious, as I had to do double the work every time I wanted to release a feature or make a fix.
My solution was to reunite the Mac and Linux versions back into a single repository, breaking the script into several modular files.
┌── bin/po ├── share/po-common ├── share/po-linux └── share/po-mac
pois the main file, and the script that gets executed when a user runs
poat the command line.
po-commonis sourced by
po, and contains all OS independent functions.
po-maccontain the OS dependent settings and functions.
Regardless of OS:
pois installed at
po-commonis installed at
po-linuxis installed at
po-macis installed at
$ bash <(curl -sL https://raw.githubusercontent.com/nrobinson2000/po/master/install)
None at the moment. Just make sure to use the Universal Installer.
Is this really the future of po-util?
Yes. All future development will be on po. The legacy po-util repositories will remain supported, but future work will be focused on po.