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

21 lines
416 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 09:24:39 +00:00
parser = Parser.get_subparsers().add_parser(
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)