shiwaforce/poco

View on GitHub
poco/commands/repo_ls.py

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
from .abstract_command import AbstractCommand
from ..services.config_handler import ConfigHandler
from ..services.console_logger import ColorPrint
from ..services.state_utils import StateUtils


class RepoLs(AbstractCommand):

    sub_command = "repo"
    command = "ls"
    description = "Run: 'poco repo ls' to list the configs of repos."

    def prepare_states(self):
        StateUtils.prepare("catalog_read")

    def resolve_dependencies(self):
        pass

    def execute(self):
        ColorPrint.print_info(message=ConfigHandler.print_config())