dipperin_prompts

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegPort = "^([0-9]|[1-9]\\d{1,3}|[1-5]\\d{4}|6[0-4]\\d{3}|65[0-4]\\d{2}|655[0-2]\\d|6553[0-5])$"
)
View Source
const (
	Selected = `{{ "✔" | green }} {{ "%s" | cyan }}: {{ .Name }}`
)

Variables

View Source
var PromptTemplate = &promptui.PromptTemplates{
	Prompt:  "{{ . }}:",
	Valid:   `{{ "✔" | green }} {{ . }}: `,
	Invalid: `{{ "✗" | red }} {{ . }}: `,
	Success: `{{ "✔" | green }} {{ . | cyan}}: `,
}
View Source
var TplNodeType = &promptui.SelectTemplates{
	Label:    label,
	Active:   active,
	Inactive: inactive,
	Selected: fmt.Sprintf(Selected, "Node Type"),
}

Functions

func DataDir

func DataDir() (string, error)

func HTTPPort

func HTTPPort() (string, error)

func NodeName

func NodeName() (string, error)

func NodeType

func NodeType() (int, error)

func P2PListener

func P2PListener() (string, error)

func WSPort

func WSPort() (string, error)

func WalletPassPhrase

func WalletPassPhrase() (string, error)

func WalletPassword

func WalletPassword() (string, error)

func WalletPath

func WalletPath(nodePath string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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