rootcmd

package
v0.0.0-...-76cddca Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const CommandName = "themesitebuilder"

CommandName is the main command's binary name.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Out   string
	Quiet bool

	Client *client.Client
}

func New

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

New constructs a usable ffcli.Command and an empty Config. The config will be set after a successful parse. The caller must initialize the config's 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.

Jump to

Keyboard shortcuts

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