Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTasks = map[string]Task{
"fetch-all": {
Cmd: "git fetch --all",
Description: "Fetch all remotes.",
},
"pre-commit": {
Cmd: "pre-commit install --allow-missing-config",
Description: "Install pre-commit hooks.",
},
"pull-main": {
Cmd: "git switch main && git pull",
Description: "Switch to main and pull.",
},
}
Functions ¶
This section is empty.
Types ¶
type GitHub ¶ added in v0.1.0
type GitHub struct {
BaseURL string
// contains filtered or unexported fields
}
type GitHubRepoDto ¶ added in v0.1.0
type GitHubRepoDto struct {
Name string `json:"name"`
FullName string `json:"full_name"`
SSHURL string `json:"ssh_url"`
CloneURL string `json:"clone_url"`
Owner OwnerDto `json:"owner"`
}
func (GitHubRepoDto) ToRepository ¶ added in v0.1.0
func (r GitHubRepoDto) ToRepository(space business.Path) business.Repository
type ManiConfig ¶
type ManiConfig struct {
Projects map[string]ManiProject `yaml:"projects"`
Tasks map[string]Task `yaml:"tasks"`
}
type ManiProject ¶
type ManiWriter ¶
type ManiWriter struct {
}
func NewManiWriter ¶
func NewManiWriter() ManiWriter
func (ManiWriter) Write ¶
func (m ManiWriter) Write(repositories []business.Repository) string
type NamespaceDto ¶
type NamespaceDto struct {
FullPath string `json:"full_path"`
}
type ProjectDto ¶
type ProjectDto struct {
Path string `json:"Path"`
PathWithNamespace string `json:"path_with_namespace"` // GitLab-Path mit Namespace
SSHURLToRepo string `json:"ssh_url_to_repo"`
HTTPURLToRepo string `json:"http_url_to_repo"`
Namespace NamespaceDto `json:"namespace"`
}
func (ProjectDto) ToRepository ¶
func (p ProjectDto) ToRepository(space business.Path) business.Repository
type ShellWriter ¶
type ShellWriter struct {
// contains filtered or unexported fields
}
func NewShellWriter ¶
func NewShellWriter() ShellWriter
func (ShellWriter) Write ¶
func (s ShellWriter) Write(repositories []business.Repository) string
Click to show internal directories.
Click to hide internal directories.