]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
src/script: scrape the description of all MON commands
authorSebastian Wagner <sebastian.wagner@suse.com>
Fri, 3 Apr 2020 10:32:52 +0000 (12:32 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Mon, 4 May 2020 15:37:47 +0000 (17:37 +0200)
commit8098f11d04c1d871aae40c7e8de15ad36da93c97
tree50d04e623c3c5bfb7e2ed2a4477f31201291ff20
parent3af27bfb71334f5d9872f085a4048421b5aacf25
src/script: scrape the description of all MON commands

We gather the MGR commands by importing all modules and then
concat all `Module.COMMAND` lists.

Then we use the C preprocessor to parse the MonCommands.h and
then pretent to output to be Python. Which actually works.

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
src/script/gen_static_command_descriptions.py [new file with mode: 0644]