Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup struct { Command ConfigPath string `required:"true" short:"c" long:"config" description:"The path to the YAML configuration required by hoard"` }
Backup provides the logic to run Hoard's backup functionality.
func NewBackup ¶
func NewBackup(opts ...CommandOption) *Backup
NewBackup instantiates an instance of the Backup command.
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
Command provides common base logic for Hoard sub-commands to build upon.
type CommandOption ¶
type CommandOption func(*Command)
CommandOption provides a way to configure a command.
func WithConfig ¶
func WithConfig(config *config.Config) CommandOption
WithConfig sets the configuration on the command instance.
Click to show internal directories.
Click to hide internal directories.