vcspull import - vcspull.cli._import
¶
Import repository functionality for vcspull.
- vcspull.cli._import.get_git_origin_url(repo_path)[source]¶
Get the origin URL from a git repository.
- Return type:
- Parameters:
repo_path (pathlib.Path) – Path to the git repository
- Returns:
The origin URL if found, None otherwise
- Return type:
str | None
- vcspull.cli._import.create_import_subparser(parser)[source]¶
Create
vcspull import
argument subparser.- Return type:
- Parameters:
parser (ArgumentParser)
- vcspull.cli._import.import_repo(name, url, config_file_path_str, path, workspace_root_path)[source]¶
Import a repository to the vcspull configuration.
- Return type:
- Parameters:
- vcspull.cli._import.import_from_filesystem(scan_dir_str, config_file_path_str, recursive, workspace_root_override, yes)[source]¶
Scan filesystem for git repositories and import to vcspull config.
- Return type:
- Parameters:
scan_dir_str (str) – Directory to scan for git repositories
config_file_path_str (str | None) – Path to config file, or None to use default
recursive (bool) – Whether to scan subdirectories recursively
workspace_root_override (str | None) – Workspace root to use in config (overrides automatic detection)
yes (bool) – Whether to skip confirmation prompt