kiwi-scp/src/kiwi/subcommands/show.py

21 lines
413 B
Python
Raw Normal View History

from ..config import LoadedConfig
from ..core import Parser
2020-08-06 12:55:27 +00:00
from ._utils import SubCommand
2020-08-06 12:55:27 +00:00
class ShowCommand(SubCommand):
2020-08-10 09:24:39 +00:00
command = 'show'
2020-08-06 12:55:27 +00:00
@classmethod
def setup(cls):
2020-08-10 13:21:39 +00:00
_ = Parser().get_subparsers().add_parser(
2020-08-10 09:24:39 +00:00
cls.command,
description="Show effective kiwi.yml"
)
2020-08-06 12:55:27 +00:00
@classmethod
def run(cls):
config = LoadedConfig.get()
2020-08-06 12:55:27 +00:00
print(config)