vcspull status - vcspull.cli.status¶
Repository status checking functionality for vcspull.
-
class vcspull.cli.status.StatusCheckConfig¶
Bases:
objectConfiguration options for status checking.
-
vcspull.cli.status._visible_length(text)¶
Return the printable length of string stripped of ANSI codes.
-
class vcspull.cli.status.StatusProgressPrinter¶
Bases:
objectRender incremental status check progress for TTY output.
-
vcspull.cli.status.create_status_subparser(parser)¶
Create
vcspull statusargument subparser.- Parameters:
parser (argparse.ArgumentParser) – The parser to configure
- Return type:
-
async vcspull.cli.status._check_repos_status_async(repos, *, config, progress)¶
Check repository status concurrently using asyncio.
- 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)¶
Execute a git command and return the completed process.
- Parameters:
- Return type:
-
vcspull.cli.status.check_repo_status(repo, detailed=False)¶
Check the status of a single repository.
- 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)¶
Check status of configured repositories.
- Parameters:
repo_patterns (list[str]) – Patterns to filter repositories (fnmatch)
config_path (pathlib.Path | None) – Path to config file, or None to auto-discover
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)
- Return type:
-
vcspull.cli.status._format_status_line(status, formatter, colors, detailed)¶
Format a single repository status line for human output.