mirror of
https://github.com/yavook/kiwi-scp.git
synced 2024-11-26 22:23:01 +00:00
22 lines
443 B
Python
22 lines
443 B
Python
|
from kiwi.config import Config
|
||
|
from kiwi.core import Parser
|
||
|
|
||
|
from .subcommand import SubCommand
|
||
|
|
||
|
|
||
|
class ShowCommand(SubCommand):
|
||
|
__parser = None
|
||
|
|
||
|
@classmethod
|
||
|
def get_cmd(cls):
|
||
|
return 'show'
|
||
|
|
||
|
@classmethod
|
||
|
def setup(cls):
|
||
|
cls.__parser = Parser.get_subparsers().add_parser(cls.get_cmd(), help="Show effective kiwi.yml")
|
||
|
|
||
|
@classmethod
|
||
|
def run(cls):
|
||
|
config = Config.load()
|
||
|
print(config)
|