cmd

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DryRun bool

Functions

This section is empty.

Types

type Choice

type Choice struct {
	Option      string
	Description string
	Flag        string
}

type InteractivePrompter

type InteractivePrompter struct {
	Interactive bool
}

func (*InteractivePrompter) InteractivePrompt

func (prompter *InteractivePrompter) InteractivePrompt(options []Choice, question string, selectedTemplate string) (int, string, error)

type RootHandler

type RootHandler struct {
	// contains filtered or unexported fields
}

func NewRootHandler

func NewRootHandler(use string, short string, long string) (handler RootHandler)

func (*RootHandler) AddCommand

func (handler *RootHandler) AddCommand(command *cobra.Command)

func (*RootHandler) Execute

func (handler *RootHandler) Execute() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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