app

package
v0.0.0-...-30dbe51 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// The cli app's name.
	//
	// Required: true
	Name string

	// The app's description.
	Description string

	// The app's command instance.
	//
	// Required: true
	Command *cobra.Command
}

App is the main structure of a cli application.

func NewApp

func NewApp(name string, opts ...Option) *App

NewApp returns a new cli app.

type Option

type Option func(*App)

func WithDescription

func WithDescription(description string) Option

type Options

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

Jump to

Keyboard shortcuts

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