pkg

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 12 Imported by: 0

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
}

func NewGitHub added in v0.1.0

func NewGitHub(token string) *GitHub

func (*GitHub) BySpace added in v0.1.0

func (g *GitHub) BySpace(space business.Path) ([]business.Repository, error)

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 GitLab

type GitLab struct {
	BaseURL string
	// contains filtered or unexported fields
}

func NewGitLab

func NewGitLab(baseURL, token string) *GitLab

func (*GitLab) BySpace

func (g *GitLab) BySpace(space business.Path) ([]business.Repository, error)

type ManiConfig

type ManiConfig struct {
	Projects map[string]ManiProject `yaml:"projects"`
	Tasks    map[string]Task        `yaml:"tasks"`
}

type ManiProject

type ManiProject struct {
	Url  string `yaml:"url"`
	Path string `yaml:"path"`
}

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 OwnerDto added in v0.1.0

type OwnerDto struct {
	Login string `json:"login"`
}

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

type Task

type Task struct {
	Cmd         string `yaml:"cmd"`
	Description string `yaml:"description"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL