git

package
v0.1.0-dev.20260216091926 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(reg *execution.ActionRegistry)

Register registers all git actions with the given registry.

Types

type Checkout

type Checkout struct{ Impl *Provider }

Checkout checks out a git ref.

func (*Checkout) Do

func (*Checkout) Name

func (o *Checkout) Name() string

func (*Checkout) Undo

func (o *Checkout) Undo(_ *execution.Context, _ map[string]any, _ execution.UndoState) error

type Clone

type Clone struct{ Impl *Provider }

Clone clones a git repository.

func (*Clone) Do

func (*Clone) Name

func (o *Clone) Name() string

func (*Clone) Undo

func (o *Clone) Undo(_ *execution.Context, _ map[string]any, _ execution.UndoState) error

type Provider

type Provider struct{}

Provider provides git operations.

func (*Provider) Checkout

func (p *Provider) Checkout(repo, ref string, output io.Writer) error

Checkout checks out a ref in the given repository directory.

func (*Provider) Clone

func (p *Provider) Clone(url, path string, output io.Writer) error

Clone clones a repository from url into path.

func (*Provider) Pull

func (p *Provider) Pull(repo string, output io.Writer) error

Pull pulls the latest changes in the given repository directory.

type Pull

type Pull struct{ Impl *Provider }

Pull pulls latest changes in a git repository.

func (*Pull) Do

func (o *Pull) Do(ctx *execution.Context, slots map[string]any) (execution.Result, execution.UndoState, error)

func (*Pull) Name

func (o *Pull) Name() string

func (*Pull) Undo

func (o *Pull) Undo(_ *execution.Context, _ map[string]any, _ execution.UndoState) error

Jump to

Keyboard shortcuts

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