mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
e23d238e85
Commands now require a `setup` function, where the will register the command instance manually
15 lines
450 B
Python
15 lines
450 B
Python
#
|
|
# This file is distributed under the MIT License. See LICENSE.md for details.
|
|
#
|
|
|
|
from revng.cli.commands_registry import CommandsRegistry
|
|
|
|
from .cat import PTMLCatCommand
|
|
from .strip import PTMLStripCommand
|
|
|
|
|
|
def setup(commands_registry: CommandsRegistry):
|
|
commands_registry.define_namespace(("ptml",), "Manipulate PTML files")
|
|
commands_registry.register_command(PTMLCatCommand())
|
|
commands_registry.register_command(PTMLStripCommand())
|