vcspull add - vcspull.cli.add
¶
Add single repository functionality for vcspull.
- vcspull.cli.add.create_add_subparser(parser)[source]¶
Create
vcspull add
argument subparser.- Return type:
- Parameters:
parser (argparse.ArgumentParser) – The parser to configure
- vcspull.cli.add._resolve_workspace_path(workspace_root, repo_path_str, *, cwd)[source]¶
Resolve workspace path from arguments.
- Return type:
- Parameters:
workspace_root (str | None) – Workspace root path from user
repo_path_str (str | None) – Repo path from user
cwd (pathlib.Path) – Current working directory
- Returns:
Resolved workspace path
- Return type:
- vcspull.cli.add.add_repo(name, url, config_file_path_str, path, workspace_root_path, dry_run)[source]¶
Add a repository to the vcspull configuration.
- Return type:
- Parameters:
name (str) – Repository name for the config
url (str) – Repository URL
config_file_path_str (str | None) – Path to config file, or None to use default
path (str | None) – Local path where repo will be cloned
workspace_root_path (str | None) – Workspace root to use in config
dry_run (bool) – If True, preview changes without writing