1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
dotfile-automator/project/sync/cli.py

16 lines
494 B
Python

import click
from project.utils import config, repos
@click.command('sync')
@click.option('--private/--no-private', default=False)
def cli(private):
if not config.has_basics():
print("You do not have all the basic requirements set.")
return 1
exit_code = repos.clone_public_data()
if private and exit_code == 0:
if not config.get('private_repo'):
print("private repo not set")
exit_code = repos.clone_public_data()
return exit_code