cli

package
v0.0.0-...-8ad281a Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capyback

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

Capyback is a root for start application from cli.

func NewCapyback

func NewCapyback(version string, defaultConfigPath string) *Capyback

NewCapyback creates a new Capyback.

func (*Capyback) Execute

func (c *Capyback) Execute() error

Execute executes the command.

func (*Capyback) RegisterCommands

func (c *Capyback) RegisterCommands(providers ...CommandProvider)

RegisterCommands registers commands in Capyback.

type CommandProvider

type CommandProvider interface {
	Command() *cobra.Command
}

CommandProvider is a provider for command. It is used for register commands in Capyback.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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