Index
wrknv.workspace
¶
Multi-Repo Workspace Management Package¶
Manage configurations across multiple independent Git repositories.
Classes¶
RepoConfig
¶
Configuration for a single repository in the workspace.
Functions¶
from_dict
classmethod
¶
Create RepoConfig from dictionary.
Source code in wrknv/workspace/schema.py
to_dict
¶
Convert to dictionary, excluding None values for TOML compatibility.
Source code in wrknv/workspace/schema.py
WorkspaceConfig
¶
Bases: BaseConfig
Root workspace configuration.
Functions¶
add_repo
¶
Add repository to workspace.
Source code in wrknv/workspace/schema.py
find_repo
¶
from_dict
classmethod
¶
Create WorkspaceConfig from dictionary.
Source code in wrknv/workspace/schema.py
get_outdated_repos
¶
Get repositories that need template updates.
get_repos_by_type
¶
remove_repo
¶
Remove repository from workspace.
Source code in wrknv/workspace/schema.py
to_dict
¶
Convert to dictionary, excluding None values for TOML compatibility.
Source code in wrknv/workspace/schema.py
WorkspaceDiscovery
¶
Discovers and analyzes repositories in workspace.
Source code in wrknv/workspace/discovery.py
Functions¶
analyze_repo
¶
Analyze a single repository.
Source code in wrknv/workspace/discovery.py
detect_repo_type
¶
Determine repository type from pyproject.toml and path.
Source code in wrknv/workspace/discovery.py
discover_repos
¶
Find all Git repos with pyproject.toml.
Source code in wrknv/workspace/discovery.py
get_repo_status
¶
Get current status of repository.
Source code in wrknv/workspace/discovery.py
get_workspace_summary
¶
Get summary of workspace state.
Source code in wrknv/workspace/discovery.py
validate_workspace_structure
¶
Validate workspace structure and return issues.
Source code in wrknv/workspace/discovery.py
WorkspaceManager
¶
Manage multi-repo workspaces.
Source code in wrknv/workspace/manager.py
Functions¶
add_repo
¶
add_repo(
repo_path: Path | str,
name: str | None = None,
repo_type: str | None = None,
template_profile: str | None = None,
) -> WorkspaceConfig
Add repository to workspace.
Source code in wrknv/workspace/manager.py
check_drift
¶
Check for configuration drift.
Source code in wrknv/workspace/manager.py
get_workspace_status
¶
Get comprehensive workspace status.
Source code in wrknv/workspace/manager.py
init_workspace
¶
init_workspace(
template_source: str | None = None,
auto_discover: bool = True,
) -> WorkspaceConfig
Initialize workspace in current directory.
Source code in wrknv/workspace/manager.py
load_config
¶
Load workspace configuration.
Source code in wrknv/workspace/manager.py
remove_repo
¶
Remove repository from workspace.
Source code in wrknv/workspace/manager.py
save_config
¶
Save workspace configuration.
Source code in wrknv/workspace/manager.py
sync_all
async
¶
Sync configurations across all repos.
Source code in wrknv/workspace/manager.py
sync_repo
async
¶
Sync configuration for specific repository.
Source code in wrknv/workspace/manager.py
WorkspaceSync
¶
Synchronize configurations across repositories.
Source code in wrknv/workspace/sync.py
Functions¶
check_drift
¶
Check for configuration drift across repositories.
Source code in wrknv/workspace/sync.py
sync_all
async
¶
Sync all repositories in workspace.
Source code in wrknv/workspace/sync.py
sync_repo
async
¶
Sync single repository configuration.
Source code in wrknv/workspace/sync.py
validate_templates
¶
Validate that all templates are available and functional.