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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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