cmdutil

package
v0.0.0-...-544938e Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultConfigFileName = ".reman"
	VersionKey            = "$version" // Key for the version info in config file, current version is defined in `cmdutil.Version`

	AuthorNameKey     = "author.name" // Name of the author, used for writing filenames
	AuthorNameLimit   = 19            // Character limit for the name of the author
	DefaultAuthorName = "Reman"       // Default value for author name, defaults are set in config at init
)
View Source
const (
	Version = "1.0"
)

Variables

This section is empty.

Functions

func IsValidNameString

func IsValidNameString(s string) error

Types

type Prompter

type Prompter struct {
	Question     string
	DefaultValue string
	Options      []string
	Suggest      func(string) []string
}

func (Prompter) Confirm

func (p Prompter) Confirm() bool

func (Prompter) Input

func (p Prompter) Input() string

func (Prompter) Select

func (p Prompter) Select() string

Jump to

Keyboard shortcuts

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