Example #1
0
def show(key):
    key = " ".join(key)
    if not key:
        for key, value in config.get_all().items():
            print("{}: {}".format(key, value))
        return 0
    print("'{}' is set to '{}'".format(key, config.get(key)))
    return 0
Example #2
0
def cli(private, clean):
    if clean:
        print("Cleaning")
        repos.clean()
    if not config.has_basics():
        print("You do not have all the basic requirements set.")
        return 1
    error = repos.clone_public_data()
    if error:
        return 1
    if private:
        if not config.get('private_repo'):
            print("private repo not set")
            return 1
        error = repos.clone_private_data()
    return 1 if error else 0