command

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithStdio

func WithStdio(in io.Reader, out, err io.Writer) func(o *options)

Types

type Command

type Command interface {
	Execute(ctx context.Context, args ...string) error
	RegisterSubCommands(cmds ...Command)
	GenerateReadme(ctx context.Context, dir string) error
	GenerateReferences(ctx context.Context, dir string) error
	// contains filtered or unexported methods
}

type PullCommand

type PullCommand interface {
	Command
}

func NewPullCommand

func NewPullCommand(repo repository.Repository, optFns ...func(o *options)) PullCommand

type PushCommand

type PushCommand interface {
	Command
}

func NewPushCommand

func NewPushCommand(repo repository.Repository, optFns ...func(o *options)) PushCommand

type RootCommand

type RootCommand interface {
	Command
}

func NewRootCommand

func NewRootCommand(repo repository.Repository, optFns ...func(o *options)) RootCommand

type VersionCommand

type VersionCommand interface {
	Command
}

func NewVersionCommand

func NewVersionCommand(repo repository.Repository, optFns ...func(o *options)) VersionCommand

Jump to

Keyboard shortcuts

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