summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2023-05-05 14:41:19 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2023-05-08 21:58:56 +0200
commit003e278c29ce3dd4df8533b13d39db8942610d15 (patch)
treea59c58c296838ccdc2211cc965450979c889e91c
parentitems: Use CSafeLoader if available (diff)
downloadrtems-central-003e278c29ce3dd4df8533b13d39db8942610d15.tar.bz2
specview.py: Add types filter
-rwxr-xr-xspecview.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/specview.py b/specview.py
index 6cecac31..14a61936 100755
--- a/specview.py
+++ b/specview.py
@@ -403,11 +403,13 @@ def _list_api(item_cache: ItemCache) -> None:
def main() -> None:
""" Views the specification. """
+
+ # pylint: disable=too-many-branches
parser = argparse.ArgumentParser()
parser.add_argument('--filter',
choices=[
"none", "api", "orphan", "no-validation",
- "action-table", "action-list", "design"
+ "action-table", "action-list", "design", "types"
],
type=str.lower,
default="none",
@@ -457,6 +459,9 @@ def main() -> None:
_list_api(item_cache)
elif args.filter == "design":
_design(item_cache)
+ elif args.filter == "types":
+ for name in sorted(item_cache.items_by_type.keys()):
+ print(name)
if __name__ == "__main__":