tree: 3d1eab5701497371c4ab8d4c354702e5975d09d9 [path history] [tgz]
  1. README.md
  2. __init__.py
  3. alarm_filters.py
  4. device.py
  5. logical_device.py
  6. main.py
  7. omci.py
  8. omci_alarm_info.py
  9. setup.sh
  10. table.py
  11. utils.py
  12. xpon.py
cli/README.md

CLI (~/cli)

  • Add auto-completion for most common args like device and logical device ids
  • Add consistent argument checking
  • Unify code that retrieves data from gRPC
  • Unify code that prints out data/response, to allow:
    • Selectable output mode:
      • JSON
      • Tabular
  • Organize history per sub context so that in each context the commands entered in that context will show
  • Metaprogramming [BIG ONE]: Make large part of the commands come from annotations embedded in the protobuf files and have corresponding handler auto-generated by protoc
  • Package CLI as docker container, bake it into composition