from gpm.utils.console import puts
from gpm.cli import CLI
from gpm.utils.conf import GPMConf
from gpm.utils.git_client import GitClient

class CLIInit(CLI):
    _OPTS    = {"shortcut": "h", "name": ["help"], "action": ["_help"], "default": "_init"}
    __doc__ = """

    """

    def _help(self, *args, **kwargs):
        puts(self.__doc__)

    def _init(self, *args, **kwargs):
        conf = GPMConf()
        conf.generate()
        gc   = GitClient(conf)
        gc.init()

_MOD = CLIInit
from gpm.utils.console import puts
from gpm.cli import CLI
from gpm.utils.conf import GPMConf
from gpm.utils.git_client import GitClient
from gpm.const import GPM_YML

class CLIInit(CLI):
    _OPTS    = {"shortcut": "h", "name": ["help"], "action": ["_help"], "default": "_init"}
    __doc__ = """

    """

    def _help(self, *args, **kwargs):
        puts(self.__doc__)

    def _init(self, *args, **kwargs):
        conf = GPMConf()
        conf.generate()
        gc   = GitClient(conf)
        gc.init()
        gc.add(GPM_YML)
        gc.commit("Init Project with gpm")

_MOD = CLIInit
Add first commit