cmd

package
v0.0.0-...-692e367 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultCLI = NewCLI()
)

Functions

func App

func App() *cli.App

func Register

func Register(commands ...*cli.Command)

func Run

func Run()

Types

type CLI

type CLI interface {
	App() *cli.App
	Options() Options
	Run() error
}

func NewCLI

func NewCLI(opts ...Option) CLI

type Option

type Option func(o *Options)

type Options

type Options struct {
	Name        string
	Description string
	Version     string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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