def check_vim(): LOG.info('checking VIM system files') checker = RepoChecker.from_global_repo_path() check = checker.check(VIM_FILES) click.echo(report(check)) vim_dir = Path(VIM_DIR).expanduser() if not vim_dir.exists: LOG.warning('"{}" directory is missing'.format(VIM_DIR)) else: LOG.info('"{}" directory exists'.format(VIM_DIR))
def to_system(): checker = RepoChecker.from_global_repo_path() check = checker.check(VIM_FILES) check.copy_to_system()