helpers

package
v0.11.7 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFlag

func ReadFlag(title string, key string, secret bool) string

ReadFlag will try to read the flag with the given key.

* If it is set to anything but '-, the function will return the value as is. * If is is set to '-', the function will prompt the user to enter the flag using the given title. * If secret is true, the function will treat the input as a password, not echoing keystrokes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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