Files
revng-revng/python/revng/cli/_commands/ptml/__init__.py
T
Giacomo Vercesi e23d238e85 revng.cli: explicitly initialize Commands
Commands now require a `setup` function, where the will register the
command instance manually
2022-08-10 09:49:24 +02:00

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())