git

package
v0.0.0-...-f3f1ec7 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTokenFile

func ParseTokenFile(gitTokenFile string) (map[string]string, error)

ParseTokenFile reads the git token file.

Types

type Git

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

Git is the command line interface for git.

func New

func New(verbose bool, censor func(string) string) Git

New creates one instance of git cli.

func (Git) Cmd

func (g Git) Cmd(ctx context.Context, params ...string) *exec.Cmd

Cmd creates a new git command.

func (Git) Run

func (g Git) Run(ctx context.Context, params ...string) error

Run runs a command.

Jump to

Keyboard shortcuts

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