Documentation
¶
Index ¶
- func EnsureAvailable() error
- func GetCurrentBranch(dir string) (string, error)
- func IsIgnored(dir, path string) bool
- func IsRepo(dir string) bool
- type Command
- func Add(paths ...string) *Command
- func Branch(args ...string) *Command
- func CheckIgnore(path string) *Command
- func Checkout(paths ...string) *Command
- func Clone(repoURL, targetDir string, sshKeyPath ...string) *Command
- func Commit(message string) *Command
- func Config(key, value string) *Command
- func Diff(args ...string) *Command
- func DiffCached() *Command
- func Fetch(sshKeyPath ...string) *Command
- func ForEachRef(args ...string) *Command
- func LsFiles(args ...string) *Command
- func NewCommand(args ...string) *Command
- func Pull(sshKeyPath ...string) *Command
- func PullFFOnly(sshKeyPath ...string) *Command
- func Push(branch string, sshKeyPath ...string) *Command
- func Reset(paths ...string) *Command
- func RevParse(args ...string) *Command
- func Show(args ...string) *Command
- func Status(args ...string) *Command
- func (c *Command) AllowPrompts() *Command
- func (c *Command) Build() *exec.Cmd
- func (c *Command) Dir(dir string) *Command
- func (c *Command) Exec() *exec.Cmd
- func (c *Command) Output() ([]byte, error)
- func (c *Command) Run() ([]byte, error)
- func (c *Command) RunSilent() error
- func (c *Command) Validate() error
- func (c *Command) WithEnv(key, value string) *Command
- func (c *Command) WithSSHConfig(cfg *SSHKeyConfig) *Command
- func (c *Command) WithSSHKey(keyPath string) *Command
- type SSHKeyConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureAvailable ¶
func EnsureAvailable() error
func GetCurrentBranch ¶
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func CheckIgnore ¶
func DiffCached ¶
func DiffCached() *Command
func ForEachRef ¶
func NewCommand ¶
func PullFFOnly ¶
func (*Command) AllowPrompts ¶
func (*Command) WithSSHConfig ¶
func (c *Command) WithSSHConfig(cfg *SSHKeyConfig) *Command
func (*Command) WithSSHKey ¶
type SSHKeyConfig ¶
Click to show internal directories.
Click to hide internal directories.