Version: v2.0.0 Latest Latest

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

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




This section is empty.


This section is empty.


This section is empty.


type Config

type Config struct {
	Token   string
	Verbose bool

	Client *objectapi.Client

Config for the root command, including flags and types that should be available to each subcommand.

func New

func New() (*ffcli.Command, *Config)

New constructs a usable ffcli.Command and an empty Config. The config's token and verbose fields will be set after a successful parse. The caller must initialize the config's object API client field.

func (*Config) Exec

func (c *Config) Exec(context.Context, []string) error

Exec function for this command.

func (*Config) RegisterFlags

func (c *Config) RegisterFlags(fs *flag.FlagSet)

RegisterFlags registers the flag fields into the provided flag.FlagSet. This helper function allows subcommands to register the root flags into their flagsets, creating "global" flags that can be passed after any subcommand at the commandline.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL