git

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 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

Git represents a local Git repository path and provides a method to execute Git commands within that repository. The Cmd method constructs and runs a Git command with the given arguments, returning the underlying command execution details, combined standard output and error output, and any execution error that occurred.

func (Git) Cmd

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

Cmd executes a git command with the specified arguments within the repository's directory, returning the underlying *exec.Cmd, combined standard output and standard error as a []byte, and an error if one occurred during command execution.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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