cmd

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package cmd implements utilities for interpreting, handling, responding to commands sent by Git.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCapabilities

func HandleCapabilities(ctx context.Context, comm comms.Communicator) error

HandleCapabilities executes the capabilities command by listing supported capabilities to Git.

func HandleFetch

func HandleFetch(ctx context.Context, local git.Repository, remote model.ReadOnlyModeler, comm comms.Communicator) error

HandleFetch executes a batch of fetch commands.

func HandleList

func HandleList(ctx context.Context, local git.Repository, remote model.Modeler, comm comms.Communicator) error

HandleList executes the list command. Lists refs one per line.

func HandleOption

func HandleOption(ctx context.Context, comm comms.Communicator) error

HandleOption executes an option command.

func HandlePush

func HandlePush(ctx context.Context, local git.Repository, localDir string, remote model.Modeler, comm comms.Communicator) error

HandlePush executes a batch of push commands.

Types

This section is empty.

Jump to

Keyboard shortcuts

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