command

package
v0.0.0-...-4e27ce1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

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

func New

func New(config Config) (*Command, error)

New creates a new root command.

func (*Command) CobraCommand

func (c *Command) CobraCommand() *cobra.Command

CobraCommand returns the spf13/cobra command

func (*Command) Execute

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

Execute is called to actuall run the main command

type Config

type Config struct {
	// Dependencies.
	Logger micrologger.Logger
}

Config represents the configuration used to create a new root command.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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