package rootcmd
import "github.com/peterbourgon/ff/v3/ffcli/examples/objectctl/pkg/rootcmd"
Index ¶
Types ¶
type Config ¶
Config for the root command, including flags and types that should be available to each subcommand.
func New ¶
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 ¶
Exec function for this command.
func (*Config) RegisterFlags ¶
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 ¶
- Version
- v3.4.0 (latest)
- Published
- Jul 20, 2023
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 1 month ago –
Tools for package owners.