This is a tool for parsing seemingly complex juju status yaml/json files. It is currently still in early alpha stages of development.
sudo snap install --edge xjs
With yaml:
xjs -y inputfile.yaml
With json:
xjs -j inputfile.json
Options:
Usage: xjs [OPTIONS] <status files>
xjs parses a juju status yaml/json and displays the information in a user
friendly form highlighting specific fields of specific interest.
Options:
--application <application name>
Show only the application with the specified
name
--controller <controller name> Show only the controller with the specified
name
-h, --hide-scale-zero Hide applications with a scale of 0
-s, --hide-subordinate-units Hide subordinate units
-c, --include-containers Include Container information
--machine <machine name> Show only the machine with the specified
name
--model <model name> Show only the model with the specified name
--no-color Remove color from output
--offline Don't query jujucharms.com for version
information
-a, --show-apps Show application information
-m, --show-machines Show machine information
-d, --show-model Show model information
-n, --show-net Show network interface information
-u, --show-units Show unit information
--subordinate <subordinate name>
Show only the subordinate unit with the
specified name
--unit <unit name> Show only the unit with the specified name
--help Show this message and exit.
Comment Code- make a map of your colors, and treat that as a class, vs. your structure on 105 and 128
Look into click for arg parsingUse blackAdd interfaces table- Add sosreport handling
- Juju Controller Status Handling from Mongo
- Add sosreport organizing
- Add sosreport fetching
- Add sosreport generation
- Add sorting
Add filtering- Date Verification
Make SnapTest with v1 codeAdd json supportEnforce pycodestyle checksUpdate Usage statementFix ColorsAdd support for multiple models- Get latest juju version
Get latest charm versionsModify for OOAdd Copyright/License Info- Handle Dates in a common place
Fix String Formatting- Work on tab completion more
Display relations