2020-08-08 17:41:11 +00:00
|
|
|
from ..config import LoadedConfig
|
|
|
|
from ..core import Parser
|
2020-08-06 12:55:27 +00:00
|
|
|
|
2020-08-08 17:41:11 +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):
|
2020-08-08 17:41:11 +00:00
|
|
|
config = LoadedConfig.get()
|
2020-08-06 12:55:27 +00:00
|
|
|
print(config)
|