Documentation
¶
Index ¶
- func AddRepo(ctx context.Context, input AddRepoInput) (config.WorkspaceConfig, string, []string, error)
- func CleanupWorkspaceWorktrees(input CleanupWorkspaceWorktreesInput) error
- func DeriveRepoNameFromURL(url string) string
- func RemoveRepo(ctx context.Context, input RemoveRepoInput) (config.WorkspaceConfig, error)
- type AddRepoInput
- type CleanupWorkspaceWorktreesInput
- type RemoveRepoInput
- type RepoBranchSafety
- type RepoDefaults
- type RepoSafetyInput
- type RepoSafetyReport
- type RepoStatus
- type StatusInput
- type WorkspaceSafetyInput
- type WorkspaceSafetyReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRepo ¶
func AddRepo(ctx context.Context, input AddRepoInput) (config.WorkspaceConfig, string, []string, error)
func CleanupWorkspaceWorktrees ¶ added in v0.3.0
func CleanupWorkspaceWorktrees(input CleanupWorkspaceWorktreesInput) error
func DeriveRepoNameFromURL ¶
func RemoveRepo ¶
func RemoveRepo(ctx context.Context, input RemoveRepoInput) (config.WorkspaceConfig, error)
Types ¶
type AddRepoInput ¶
type CleanupWorkspaceWorktreesInput ¶ added in v0.3.0
type RemoveRepoInput ¶
type RepoBranchSafety ¶
type RepoDefaults ¶ added in v0.3.0
type RepoSafetyInput ¶
type RepoSafetyInput struct {
WorkspaceRoot string
Repo config.RepoConfig
Defaults config.Defaults
RepoDefaults RepoDefaults
Git git.Client
FetchRemotes bool
}
type RepoSafetyReport ¶
type RepoSafetyReport struct {
RepoName string
Remote string
DefaultBranch string
Branches []RepoBranchSafety
}
func CheckRepoSafety ¶
func CheckRepoSafety(ctx context.Context, input RepoSafetyInput) (RepoSafetyReport, error)
type RepoStatus ¶
func Status ¶
func Status(ctx context.Context, input StatusInput) ([]RepoStatus, error)
type StatusInput ¶
type WorkspaceSafetyInput ¶
type WorkspaceSafetyReport ¶
type WorkspaceSafetyReport struct {
Root string
Repos []RepoSafetyReport
}
func CheckWorkspaceSafety ¶
func CheckWorkspaceSafety(ctx context.Context, input WorkspaceSafetyInput) (WorkspaceSafetyReport, error)
Click to show internal directories.
Click to hide internal directories.