ghq

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ghq

type Ghq struct {
	// contains filtered or unexported fields
}

func NewGhq

func NewGhq(root string, repos []*Repository) *Ghq

func (*Ghq) ChoiceRepoNameByPeco

func (g *Ghq) ChoiceRepoNameByPeco() (string, error)

func (*Ghq) Cleanup

func (g *Ghq) Cleanup() error

func (*Ghq) Find

func (g *Ghq) Find(name string) *Repository

func (*Ghq) Names

func (g *Ghq) Names() []string

func (*Ghq) Paths

func (g *Ghq) Paths() []string

func (*Ghq) Repos

func (g *Ghq) Repos() []*Repository

func (*Ghq) Root

func (g *Ghq) Root() string

func (*Ghq) String

func (g *Ghq) String() string

type GhqCommand

type GhqCommand struct {
	// contains filtered or unexported fields
}

func NewGhqCommand

func NewGhqCommand() *GhqCommand

func (*GhqCommand) Command

func (g *GhqCommand) Command(args ...string) *exec.Cmd

func (*GhqCommand) CreateGhq

func (g *GhqCommand) CreateGhq() (*Ghq, error)

func (*GhqCommand) List

func (g *GhqCommand) List() ([]string, error)

func (*GhqCommand) Root

func (g *GhqCommand) Root() (string, error)

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(name, path string) *Repository

func (*Repository) Contains

func (r *Repository) Contains(path string) bool

func (*Repository) Exists

func (r *Repository) Exists() bool

func (*Repository) GetLatestTagName

func (r *Repository) GetLatestTagName() string

リポジトリの最新のタグ名を取得する. タグがない場合は空文字を返す

func (*Repository) Name

func (r *Repository) Name() string

func (*Repository) Path

func (r *Repository) Path() string

func (*Repository) RemoteUrl

func (r *Repository) RemoteUrl() string

func (*Repository) Remove

func (r *Repository) Remove() error

Jump to

Keyboard shortcuts

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