project

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package project provides project 

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlreadyExists

func AlreadyExists(err error) bool

AlreadyExists function 

func GetRepositoryRoot

func GetRepositoryRoot(dirpath string) string

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 

Jump to

Keyboard shortcuts

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