cmdutil

package
v0.0.0-...-b7a57f2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitAdd

func GitAdd(root string, targetDir string) error

func GitAddDry

func GitAddDry(root string, targetDir string) ([]byte, error)

func GitCommit

func GitCommit(root string, message string) ([]byte, error)

func GitDryCommit

func GitDryCommit(root string, message string) ([]byte, error)

func GitStatus

func GitStatus(root string) ([]byte, error)

func RunGit

func RunGit(root string, args ...string) error

func RunGitWithOutput

func RunGitWithOutput(root string, args ...string) ([]byte, error)

Types

type CmdError

type CmdError struct {
	Stderr *bytes.Buffer
	Args   []string
	Err    error
}

func (CmdError) Error

func (e CmdError) Error() string

type Runnable

type Runnable interface {
	Run() error
	Output() ([]byte, error)
	OutputCombined() ([]byte, error)
}

Jump to

Keyboard shortcuts

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