-
-
Save noise/3f856c8b06a0dc544e79 to your computer and use it in GitHub Desktop.
multi-column juju status output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
COLUMNS=${COLUMNS:-$(tput cols)} | |
LINES=${LINES:-$(tput lines)} | |
if [[ ${COLUMNS} -lt 110 ]]; then | |
C=2 | |
else | |
C=3 | |
fi | |
juju status | pr --columns=${C} -T -W ${COLUMNS} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment