git_runner

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureAvailable

func EnsureAvailable() error

func GetCurrentBranch

func GetCurrentBranch(dir string) (string, error)

func IsIgnored

func IsIgnored(dir, path string) bool

func IsRepo

func IsRepo(dir string) bool

Types

type Command

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

func Add

func Add(paths ...string) *Command

func Branch

func Branch(args ...string) *Command

func CheckIgnore

func CheckIgnore(path string) *Command

func Checkout

func Checkout(paths ...string) *Command

func Clone

func Clone(repoURL, targetDir string, sshKeyPath ...string) *Command

func Commit

func Commit(message string) *Command

func Config

func Config(key, value string) *Command

func Diff

func Diff(args ...string) *Command

func DiffCached

func DiffCached() *Command

func Fetch

func Fetch(sshKeyPath ...string) *Command

func ForEachRef

func ForEachRef(args ...string) *Command

func LsFiles

func LsFiles(args ...string) *Command

func NewCommand

func NewCommand(args ...string) *Command

func Pull

func Pull(sshKeyPath ...string) *Command

func PullFFOnly

func PullFFOnly(sshKeyPath ...string) *Command

func Push

func Push(branch string, sshKeyPath ...string) *Command

func Reset

func Reset(paths ...string) *Command

func RevParse

func RevParse(args ...string) *Command

func Show

func Show(args ...string) *Command

func Status

func Status(args ...string) *Command

func (*Command) AllowPrompts

func (c *Command) AllowPrompts() *Command

func (*Command) Build

func (c *Command) Build() *exec.Cmd

func (*Command) Dir

func (c *Command) Dir(dir string) *Command

func (*Command) Exec

func (c *Command) Exec() *exec.Cmd

func (*Command) Output

func (c *Command) Output() ([]byte, error)

func (*Command) Run

func (c *Command) Run() ([]byte, error)

func (*Command) RunSilent

func (c *Command) RunSilent() error

func (*Command) Validate

func (c *Command) Validate() error

func (*Command) WithEnv

func (c *Command) WithEnv(key, value string) *Command

func (*Command) WithSSHConfig

func (c *Command) WithSSHConfig(cfg *SSHKeyConfig) *Command

func (*Command) WithSSHKey

func (c *Command) WithSSHKey(keyPath string) *Command

type SSHKeyConfig

type SSHKeyConfig struct {
	KeyPath  string
	ProxyURL string
}

Jump to

Keyboard shortcuts

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