ircsetup

package
v0.0.0-...-3d3f267 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CbBlue   = color.New(color.Bold, color.FgHiBlue).SprintfFunc()
	CbCyan   = color.New(color.Bold, color.FgHiCyan).SprintfFunc()
	CbYellow = color.New(color.Bold, color.FgHiYellow).SprintfFunc()
	CbRed    = color.New(color.Bold, color.FgHiRed).SprintfFunc()
)

Functions

func Error

func Error(text string)

Error shows the user an error

func InitialSetup

func InitialSetup(manager *ircbnc.Manager)

InitialSetup performs the initial GoshuBNC setup

func Note

func Note(text string)

Note displays a note to the user

func Query

func Query(prompt string) (string, error)

Query asks for a value from the user

func QueryBool

func QueryBool(prompt string) (bool, error)

QueryBool asks for a true/false value from the user

func QueryDefault

func QueryDefault(prompt string, defaultValue string) (string, error)

QueryDefault asks for a value, falling back to a default

func QueryNoEcho

func QueryNoEcho(prompt string) (string, error)

QueryNoEcho asks for a value from the user without echoing what they type

func Section

func Section(text string)

Section displays a section to the user

func Warn

func Warn(text string)

Warn warns the user about something

Types

This section is empty.

Jump to

Keyboard shortcuts

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