git

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2026 License: MIT Imports: 6 Imported by: 0

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) AddRemote

func (c *CLIClient) AddRemote(ctx context.Context, path, name, url string) error

func (*CLIClient) CommitFiles

func (c *CLIClient) CommitFiles(
	ctx context.Context,
	path string,
	files []string,
	message string,
) error

func (*CLIClient) Init

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

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)
	Init(ctx context.Context, path string) error
	AddRemote(ctx context.Context, path, name, url string) error
	CommitFiles(ctx context.Context, path string, files []string, message string) 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