cliapp

package
v0.0.0-...-bc84e80 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2021 License: Apache-2.0 Imports: 8 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 {
	Name string
	// contains filtered or unexported fields
}

func New

func New(i AppInfo) *App

func (*App) Run

func (a *App) Run()

func (*App) SetAuthors

func (x *App) SetAuthors(aa ...Author)

func (*App) SetCommander

func (a *App) SetCommander(c *cobra.Command) error

func (*App) SetMetadata

func (a *App) SetMetadata(mm map[string]interface{}) error

type AppInfo

type AppInfo struct {
	Name      string
	Version   string
	GitTag    string
	Copyright string
	Email     string
}

type Author

type Author struct {
	Name  string
	Email string
}

Someone who has contributed to a project.

func (Author) String

func (a Author) String() string

Implement the Stringer interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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