vcspull status - vcspull.cli.status
¶
Repository status checking functionality for vcspull.
- class vcspull.cli.status.StatusCheckConfig(max_concurrent, detailed)[source]¶
Bases:
object
Configuration options for status checking.
- vcspull.cli.status._visible_length(text)[source]¶
Return the printable length of string stripped of ANSI codes.
- class vcspull.cli.status.StatusProgressPrinter(total, colors, enabled)[source]¶
Bases:
object
Render incremental status check progress for TTY output.
Initialize the progress printer.
- Parameters:
- vcspull.cli.status.create_status_subparser(parser)[source]¶
Create
vcspull status
argument subparser.- Return type:
- Parameters:
parser (argparse.ArgumentParser) – The parser to configure
- async vcspull.cli.status._check_repos_status_async(repos, *, config, progress)[source]¶
Check repository status concurrently using asyncio.
- Return type:
list[dict[str, t.Any]]
- Parameters:
repos (list[ConfigDict]) – List of repository configurations to check
config (StatusCheckConfig) – Configuration for status checking
progress (StatusProgressPrinter | None) – Optional progress printer for live updates
- Returns:
List of status dictionaries in completion order
- Return type:
- vcspull.cli.status._run_git_command(repo_path, *args)[source]¶
Execute a git command and return the completed process.
- Return type:
- Parameters:
- vcspull.cli.status.check_repo_status(repo, detailed=False)[source]¶
Check the status of a single repository.
- Return type:
dict[str, t.Any]
- Parameters:
repo (ConfigDict) – Repository configuration
detailed (bool) – Whether to include detailed status information
- Returns:
Repository status information
- Return type:
- vcspull.cli.status.status_repos(repo_patterns, config_path, workspace_root, detailed, output_json, output_ndjson, color, concurrent=True, max_concurrent=None)[source]¶
Check status of configured repositories.
- Return type:
- Parameters:
repo_patterns (list[str]) – Patterns to filter repositories (fnmatch)
config_path (pathlib.Path | None) – Path to config file, or None to auto-discover
workspace_root (str | None) – Filter by workspace root
detailed (bool) – Show detailed status information
output_json (bool) – Output as JSON
output_ndjson (bool) – Output as NDJSON
color (str) – Color mode (auto, always, never)
concurrent (bool) – Whether to check repositories concurrently (default: True)
max_concurrent (int | None) – Maximum concurrent status checks (default: based on CPU count)