command

package
v0.0.0-...-27f0aab Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRunner

func GetRunner(command Interface) func(cmd *cobra.Command, args []string)

func NewRootCommand

func NewRootCommand(options Options) *cobra.Command

Types

type Interface

type Interface interface {
	Complete(cmd *cobra.Command, args []string) error
	Validate() error
	Run() error
}

type Options

type Options struct {
	Writer            io.Writer
	Version           pkg.Version
	Platforms         []platform.Interface
	Sections          []config.Section
	SectionsOverrides map[string][]config.Section
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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