commit | 788d6b60eb323a9a4bc39a77ead21e74d182131f | [log] [tgz] |
---|---|---|
author | Chad Norvell <chadnorvell@google.com> | Wed Jan 03 20:27:45 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Jan 03 20:27:45 2024 +0000 |
tree | be9662cfe5b506d242bbfaa27c29321a83599003 | |
parent | 5a1bf6af624961d35c1b0d27adf35186c658f875 [diff] |
pw_ide: Fix CLI command docs When `_inject_reporter` was introduced, it broke the automatically generated CLI command docs, because they were generated from docstrings and decorating a function yields a new function with new (null) docstrings. This hoists those docstrings back up and fixes the problem. This also makes it a runtime error to try to generate documentation from a command with no docstring, to prevent this kind of regression from happening again. Change-Id: I657f4155eed04afd248568f28055228d0aab96df Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/184955 Reviewed-by: Anthony DiGirolamo <tonymd@google.com> Commit-Queue: Chad Norvell <chadnorvell@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.