Exemple #1
0
def config_set_rebase(_) -> None:
    """Clowder config set rebase command entry point"""

    CONSOLE.stdout(' - Set rebase config value')
    config = Config()
    config.rebase = True
    config.save()
Exemple #2
0
def config_set_projects(args) -> None:
    """Clowder config set projects command entry point"""

    CONSOLE.stdout(' - Set projects config value')
    config = Config()
    config.projects = tuple(args.projects)
    config.save()
Exemple #3
0
def config_set_protocol(args) -> None:
    """Clowder config set protocol command entry point"""

    CONSOLE.stdout(' - Set protocol config value')
    config = Config()
    config.protocol = GitProtocol(args.protocol[0])
    config.save()
Exemple #4
0
def config_set_jobs(args) -> None:
    """Clowder config set jobs command entry point"""

    CONSOLE.stdout(' - Set jobs config value')
    config = Config()
    config.jobs = args.jobs[0]
    config.save()
Exemple #5
0
def config_clear_rebase(_) -> None:
    """Clowder config clear rebase command entry point"""

    CONSOLE.stdout(' - Clear rebase config value')
    config = Config()
    config.rebase = None
    config.save()
Exemple #6
0
def config_clear_protocol(_) -> None:
    """Clowder config clear protocol command entry point"""

    CONSOLE.stdout(' - Clear protocol config value')
    config = Config()
    config.protocol = None
    config.save()
Exemple #7
0
def config_clear_jobs(_) -> None:
    """Clowder config clear jobs command entry point"""

    CONSOLE.stdout(' - Clear jobs config value')
    config = Config()
    config.jobs = None
    config.save()
Exemple #8
0
def config_clear_all(_) -> None:
    """Clowder config clear all command entry point"""

    CONSOLE.stdout(' - Clear all config values')
    config = Config()
    config.clear()
    config.save()