Documentation
¶
Overview ¶
Package project provides project
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRepositoryRoot ¶
GetRepositoryRoot uses git CLI to find the root of the repository.
Types ¶
type Project ¶
type Project struct { Name string `json:"name"` Path string `json:"path"` URL string `json:"url"` ID int `json:"id"` }
Project struct
type Repository ¶
type Repository interface { GetProject(name string) *Project AddProject(name, path, url string) (*Project, error) UpdateProject(id int, name, path, url string) (*Project, error) }
Repository interface
func NewProjectRepository ¶
func NewProjectRepository(configPath string) (Repository, error)
NewProjectRepository function
Click to show internal directories.
Click to hide internal directories.