git

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLIClient

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

func NewCLIClient

func NewCLIClient() *CLIClient

func NewCLIClientWithRunner

func NewCLIClientWithRunner(runner Runner) *CLIClient

func (*CLIClient) Inspect

func (c *CLIClient) Inspect(ctx context.Context, path string) (Repository, error)

type Client

type Client interface {
	Inspect(ctx context.Context, path string) (Repository, error)
}

type ExecRunner

type ExecRunner struct{}

func (ExecRunner) Run

func (ExecRunner) Run(ctx context.Context, dir string, args ...string) (string, error)

type Repository

type Repository struct {
	Root      string
	OriginURL string
	HasGit    bool
	HasRemote bool
}

type Runner

type Runner interface {
	Run(ctx context.Context, dir string, args ...string) (string, error)
}

Jump to

Keyboard shortcuts

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