coli

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: Apache-2.0 Imports: 10 Imported by: 2

README

coli

An organism to implement CLI applications.

License

Apache License 2.0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coli

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

func NewColi

func NewColi(fs afero.Fs, oio ose.IO, vpr *viper.Viper) *Coli

func NewColiInThisWorld

func NewColiInThisWorld() *Coli

func (*Coli) BindFlags

func (c *Coli) BindFlags(flg *pflag.FlagSet, names []string)

func (*Coli) Execute

func (c *Coli) Execute(cmd *cobra.Command) error

func (*Coli) PreRun

func (c *Coli) PreRun(cmd *cobra.Command, args []string)

func (*Coli) Prepare

func (c *Coli) Prepare(cmd *cobra.Command)

func (*Coli) PrepareConfig

func (c *Coli) PrepareConfig(cmd *cobra.Command)

func (*Coli) PrepareFs

func (c *Coli) PrepareFs(cmd *cobra.Command)

func (*Coli) PrepareIO

func (c *Coli) PrepareIO(cmd *cobra.Command)

func (*Coli) PreparePreRun

func (c *Coli) PreparePreRun(cmd *cobra.Command)

func (*Coli) PrepareWellKnownFlags

func (c *Coli) PrepareWellKnownFlags(cmd *cobra.Command)

func (*Coli) Viper

func (c *Coli) Viper() *viper.Viper

func (*Coli) WrapRun

func (c *Coli) WrapRun(f func(c *Coli, cmd *cobra.Command, args []string)) func(cmd *cobra.Command, args []string)

type ColiCommandProducer

type ColiCommandProducer func(cl *Coli, name string, path []string) *cobra.Command

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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