utils

package
v0.0.0-...-72e6ce5 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CobraInput

func CobraInput(cmd *cobra.Command, flag string, hint string, value string, skip bool, hidden bool) (string, error)

CobraInput returns a string from a flag.

func CobraInputBool

func CobraInputBool(cmd *cobra.Command, flag string, hint string, value bool, skip bool) (bool, error)

CobraInputBool returns a bool from a flag.

func Contacts

func Contacts(cmd *cobra.Command, args []string) ([]db.Contact, error)

Contacts returns contacts from arguments.

func Input

func Input(hint, value string) (string, error)

Input is shorthand for InputVisible.

func InputBool

func InputBool(hint string, value bool) (bool, error)

InputBool provides a hint for a bool value.

func InputHidden

func InputHidden(hint, value string) (string, error)

InputHidden provides a hint for a input, but does not show the user input.

func InputVisible

func InputVisible(hint, value string) (string, error)

InputVisible provides a hint for a input, and the user input is visible.

func UfS

func UfS(input string) (uint, error)

UfS takes a string input and returns a uint.

Types

This section is empty.

Jump to

Keyboard shortcuts

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