cli

package
v0.0.0-...-c97fb91 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RootCommand

type RootCommand struct {
	State *State
}

RootCommand for the market server.

func (*RootCommand) Commands

func (c *RootCommand) Commands() []clino.Command

Commands available to the CLI user.

func (*RootCommand) Name

func (c *RootCommand) Name() string

Name of the program.

type State

type State struct {
	ConfigPath string
	Verbose    bool
}

State of the application holds flags that persists between the root command and its offspring, plus any other value you would like it to.

func (*State) Flags

func (s *State) Flags(flags *flag.FlagSet)

Flags implements the clino.FlagSet.

Jump to

Keyboard shortcuts

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