config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddSourceCommand

func NewAddSourceCommand(factory cmd.Factory) *cobra.Command

NewAddSourceCommand creates and returns the command

func NewCommand

func NewCommand(factory cmd.Factory) *cobra.Command

NewCommand creates and returns a new command

func NewListSourcesCommand

func NewListSourcesCommand(factory cmd.Factory) *cobra.Command

NewListSourcesCommand creates and returns the command

func NewRemoveSourceCommand

func NewRemoveSourceCommand(factory cmd.Factory) *cobra.Command

NewRemoveSourceCommand creates and returns the command

func NewSourcesCommand

func NewSourcesCommand(factory cmd.Factory) *cobra.Command

NewSourcesCommand creates and returns the command

func NewViewCommand

func NewViewCommand(factory cmd.Factory) *cobra.Command

NewViewCommand creates and returns the command

Types

type AddSourceCommand

type AddSourceCommand struct {
	cmd.Factory
	// Source is the source to add
	Source string
}

AddSourceCommand are the options for the command

func (*AddSourceCommand) Run

func (o *AddSourceCommand) Run(ctx context.Context) error

Run runs the command

type ListSourcesCommand

type ListSourcesCommand struct {
	cmd.Factory
}

ListSourcesCommand are the options for the command

func (*ListSourcesCommand) Run

Run runs the command

type RemoveSourceCommand

type RemoveSourceCommand struct {
	cmd.Factory
	// Source is the source to add
	Source string
}

RemoveSourceCommand are the options for the command

func (*RemoveSourceCommand) Run

Run runs the command

type ViewCommand

type ViewCommand struct {
	cmd.Factory
}

ViewCommand are the options for the command

func (*ViewCommand) Run

func (o *ViewCommand) Run(ctx context.Context) error

Run runs the command

Jump to

Keyboard shortcuts

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