Skip to content
/ xjs Public

A tool for parsing juju status yaml/json files

Notifications You must be signed in to change notification settings

nniehoff/xjs

Repository files navigation

XJS

Snap Status Build Status Total alerts

This is a tool for parsing seemingly complex juju status yaml/json files. It is currently still in early alpha stages of development.

Installation

sudo snap install --edge xjs

Usage

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.

TODO

  1. Comment Code
  2. make a map of your colors, and treat that as a class, vs. your structure on 105 and 128
  3. Look into click for arg parsing
  4. Use black
  5. Add interfaces table
  6. Add sosreport handling
  7. Juju Controller Status Handling from Mongo
  8. Add sosreport organizing
  9. Add sosreport fetching
  10. Add sosreport generation
  11. Add sorting
  12. Add filtering
  13. Date Verification
  14. Make Snap
  15. Test with v1 code
  16. Add json support
  17. Enforce pycodestyle checks
  18. Update Usage statement
  19. Fix Colors
  20. Add support for multiple models
  21. Get latest juju version
  22. Get latest charm versions
  23. Modify for OO
  24. Add Copyright/License Info
  25. Handle Dates in a common place
  26. Fix String Formatting
  27. Work on tab completion more
  28. Display relations

About

A tool for parsing juju status yaml/json files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published