git

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git string

Package git provides a Git client for executing Git commands.

Git type represents a local Git repository path. The Cmd method on Git executes the given Git command with the specified arguments and returns the output as bytes, along with any error occurred during execution.

func (Git) Cmd

func (g Git) Cmd(args ...string) (*exec.Cmd, []byte, error)

Cmd executes a git command with the given arguments on the Git repository. It returns the *exec.Cmd object representing the command, the combined output of stdout and stderr as a []byte, and an error if the command failed. exec.Cmd

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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