project

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clear

func Clear(t time.Duration, yes, force bool, addresses ...string) error

func Clone

func Clone(path, url string) error

func IdeaSelect

func IdeaSelect(dir string) (string, error)

func IsRepoClean

func IsRepoClean(path string) (bool, error)

func Open

func Open(addr string) error

func OpenCmd

func OpenCmd(addr string) error

func OpenProject

func OpenProject(path string) (string, error)

Types

type Project

type Project struct {
	GitSite  string
	Username string
	Repo     string
	SubDir   string

	// dir of repos
	Dir  string
	Path string
}

func CompleteAddrToProject

func CompleteAddrToProject(addr string) (*Project, error)

CompleteAddrToProject 填充简写为完整 addr

func LoadProject

func LoadProject(addr string) (*Project, error)

func (Project) Open

func (a Project) Open() error

func (Project) OpenCmd

func (a Project) OpenCmd() error

func (Project) Url

func (a Project) Url() string

Jump to

Keyboard shortcuts

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