pw_cmd: Add automatic plugin loading

This adds automatic detection and loading of 'pw' CLI plugins. For now,
the mechanism is to look for modules named 'pw_*' with a
'PW_CLI_PLUGINS' variable containing a list of Command classes.

In the future we may want to explore explicit plugin registration, which
is faster than scanning over all modules like this version does.

Change-Id: I29073e556189abc8d408fdf23257554bbda45ba5
2 files changed
tree: 553af43187992af62b821ea4b18c4efedd48634d
  1. docs/
  2. pw_bloat/
  3. pw_build/
  4. pw_cmd/
  5. pw_docgen/
  6. pw_dumb_io/
  7. pw_dumb_io_baremetal_stm32f429/
  8. pw_dumb_io_stdio/
  9. pw_preprocessor/
  10. pw_span/
  11. pw_status/
  12. pw_string/
  13. pw_toolchain/
  14. pw_unit_test/
  15. targets/
  16. .clang-format
  17. .gitignore
  18. .gn
  19. AUTHORS
  20. BUILD
  21. BUILD.gn
  22. BUILDCONFIG.gn
  23. CONTRIBUTING.md
  24. LICENSE
  25. modules.gni
  26. presubmit.py
  27. pw_vars_default.gni
  28. README.md
  29. WORKSPACE
README.md

Pigweed embedded oriented software libraries

Pigweed is a collection of embedded-focused libraries, which we call "modules". These modules are designed for small-footprint MMU-less microcontrollers like the ST Micro STM32L452 or the Nordic NRF82832. The modules are designed to facilitate easy integration into existing codebases.

Pigweed is in the early stages of development.