vcspull sync - vcspull.cli.sync
¶
Synchronization functionality for vcspull.
- vcspull.cli.sync.create_sync_subparser(parser)[source]¶
Create
vcspull sync
argument subparser.- Return type:
argparse.ArgumentParser
- Parameters:
parser (argparse.ArgumentParser)
- vcspull.cli.sync.sync(repo_patterns, config, exit_on_error, parser=None)[source]¶
Entry point for
vcspull sync
.- Return type:
None
- Parameters:
config (pathlib.Path)
exit_on_error (bool)
parser (argparse.ArgumentParser | None)
- vcspull.cli.sync.progress_cb(output, timestamp)[source]¶
CLI Progress callback for command.
- Return type:
None
- Parameters:
output (str)
timestamp (datetime)
- vcspull.cli.sync.guess_vcs(url)[source]¶
Guess the VCS from a URL.
- Return type:
VCSLiteral | None
- Parameters:
url (str)
- exception vcspull.cli.sync.CouldNotGuessVCSFromURL(repo_url, *args, **kwargs)[source]¶
Bases:
VCSPullException
Raised when no VCS could be guessed from a URL.