Documentation
¶
Index ¶
- type ExecAdapter
- func (a *ExecAdapter) Add(paths []string) error
- func (a *ExecAdapter) Branch(name string) (string, error)
- func (a *ExecAdapter) Checkout(name string) (string, error)
- func (a *ExecAdapter) Commit(message string) (string, error)
- func (a *ExecAdapter) CommitsFromTag(tag string) (string, error)
- func (a *ExecAdapter) CreateBackup(operation string, stashUntracked bool) (domain.Backup, error)
- func (a *ExecAdapter) CreateRelease(tagName, changelog string) (string, error)
- func (a *ExecAdapter) CurrentBranch() (string, error)
- func (a *ExecAdapter) DeleteBackup(backup domain.Backup) error
- func (a *ExecAdapter) DeleteBranch(name string) (string, error)
- func (a *ExecAdapter) DeleteTag(name string) (string, error)
- func (a *ExecAdapter) DeleteTagRemote(name string) (string, error)
- func (a *ExecAdapter) Diff(paths ...string) (string, error)
- func (a *ExecAdapter) DiffStaged(paths ...string) (string, error)
- func (a *ExecAdapter) Fetch() (string, error)
- func (a *ExecAdapter) IsGHAuthenticated() (bool, error)
- func (a *ExecAdapter) IsRepo() bool
- func (a *ExecAdapter) LatestTag() (string, error)
- func (a *ExecAdapter) ListBranches(pattern ...string) (string, error)
- func (a *ExecAdapter) ListTags(pattern ...string) ([]string, error)
- func (a *ExecAdapter) ListUntracked() ([]string, error)
- func (a *ExecAdapter) Log(limit int, paths ...string) (string, error)
- func (a *ExecAdapter) LogFull(limit int) (string, error)
- func (a *ExecAdapter) Merge(branch string) (string, error)
- func (a *ExecAdapter) Pull() (string, error)
- func (a *ExecAdapter) Push() (string, error)
- func (a *ExecAdapter) PushTag(name string) (string, error)
- func (a *ExecAdapter) PushTags() (string, error)
- func (a *ExecAdapter) Remove(paths []string) error
- func (a *ExecAdapter) RenameBranch(oldName, newName string) (string, error)
- func (a *ExecAdapter) Reset(mode string, commit string) (string, error)
- func (a *ExecAdapter) RestoreBackup(backup domain.Backup) error
- func (a *ExecAdapter) Stash() (string, error)
- func (a *ExecAdapter) StashPop() (string, error)
- func (a *ExecAdapter) Status() (domain.Status, error)
- func (a *ExecAdapter) Switch(name string) error
- func (a *ExecAdapter) Tag(name, message string) (string, error)
- func (a *ExecAdapter) TagExists(name string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExecAdapter ¶
type ExecAdapter struct {
// contains filtered or unexported fields
}
func New ¶
func New(workDir string) *ExecAdapter
func (*ExecAdapter) Add ¶
func (a *ExecAdapter) Add(paths []string) error
func (*ExecAdapter) CommitsFromTag ¶
func (a *ExecAdapter) CommitsFromTag(tag string) (string, error)
func (*ExecAdapter) CreateBackup ¶
func (*ExecAdapter) CreateRelease ¶
func (a *ExecAdapter) CreateRelease(tagName, changelog string) (string, error)
func (*ExecAdapter) CurrentBranch ¶
func (a *ExecAdapter) CurrentBranch() (string, error)
func (*ExecAdapter) DeleteBackup ¶
func (a *ExecAdapter) DeleteBackup(backup domain.Backup) error
func (*ExecAdapter) DeleteBranch ¶
func (a *ExecAdapter) DeleteBranch(name string) (string, error)
func (*ExecAdapter) DeleteTag ¶ added in v1.3.0
func (a *ExecAdapter) DeleteTag(name string) (string, error)
func (*ExecAdapter) DeleteTagRemote ¶ added in v1.3.0
func (a *ExecAdapter) DeleteTagRemote(name string) (string, error)
func (*ExecAdapter) DiffStaged ¶
func (a *ExecAdapter) DiffStaged(paths ...string) (string, error)
func (*ExecAdapter) Fetch ¶
func (a *ExecAdapter) Fetch() (string, error)
func (*ExecAdapter) IsGHAuthenticated ¶
func (a *ExecAdapter) IsGHAuthenticated() (bool, error)
func (*ExecAdapter) IsRepo ¶
func (a *ExecAdapter) IsRepo() bool
func (*ExecAdapter) LatestTag ¶
func (a *ExecAdapter) LatestTag() (string, error)
func (*ExecAdapter) ListBranches ¶
func (a *ExecAdapter) ListBranches(pattern ...string) (string, error)
func (*ExecAdapter) ListUntracked ¶
func (a *ExecAdapter) ListUntracked() ([]string, error)
func (*ExecAdapter) Pull ¶
func (a *ExecAdapter) Pull() (string, error)
func (*ExecAdapter) Push ¶
func (a *ExecAdapter) Push() (string, error)
func (*ExecAdapter) PushTag ¶ added in v1.3.0
func (a *ExecAdapter) PushTag(name string) (string, error)
func (*ExecAdapter) PushTags ¶ added in v1.3.0
func (a *ExecAdapter) PushTags() (string, error)
func (*ExecAdapter) Remove ¶
func (a *ExecAdapter) Remove(paths []string) error
func (*ExecAdapter) RenameBranch ¶ added in v1.4.2
func (a *ExecAdapter) RenameBranch(oldName, newName string) (string, error)
func (*ExecAdapter) RestoreBackup ¶
func (a *ExecAdapter) RestoreBackup(backup domain.Backup) error
func (*ExecAdapter) Stash ¶
func (a *ExecAdapter) Stash() (string, error)
func (*ExecAdapter) StashPop ¶
func (a *ExecAdapter) StashPop() (string, error)
func (*ExecAdapter) Switch ¶
func (a *ExecAdapter) Switch(name string) error
Click to show internal directories.
Click to hide internal directories.