output

package
v0.30.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: Apache-2.0 Imports: 9 Imported by: 6

Documentation

Index

Constants

View Source
const (
	NoneLog  = 0
	ErrorLog = 1
	DebugLog = 2
	InfoLog  = 3
)

Variables

This section is empty.

Functions

func ApproveTransactionPrompt

func ApproveTransactionPrompt(transaction *flowkit.Transaction) bool

func AutocompletionPrompt

func AutocompletionPrompt() (string, string)

func Bold

func Bold(msg string) string

func ErrorEmoji

func ErrorEmoji() string

func GoEmoji

func GoEmoji() string

func Green

func Green(msg string) string

func NewAccountPrompt

func NewAccountPrompt() map[string]string

func NewContractPrompt

func NewContractPrompt() map[string]string

func NewDeploymentPrompt

func NewDeploymentPrompt(
	networks config.Networks,
	accounts config.Accounts,
	contracts config.Contracts,
) map[string]interface{}

func NewNetworkPrompt

func NewNetworkPrompt() map[string]string

func OkEmoji

func OkEmoji() string

func Red

func Red(msg string) string

func RemoveAccountPrompt

func RemoveAccountPrompt(accounts config.Accounts) string

func RemoveContractPrompt

func RemoveContractPrompt(contracts config.Contracts) string

func RemoveDeploymentPrompt

func RemoveDeploymentPrompt(deployments config.Deployments) (account string, network string)

func RemoveNetworkPrompt

func RemoveNetworkPrompt(networks config.Networks) string

func SaveEmoji

func SaveEmoji() string

func StopEmoji

func StopEmoji() string

func SuccessEmoji

func SuccessEmoji() string

func TryEmoji

func TryEmoji() string

func WarningEmoji

func WarningEmoji() string

Types

type Logger

type Logger interface {
	Debug(string)
	Info(string)
	Error(string)
	StartProgress(string)
	StopProgress()
}

type Spinner

type Spinner struct {
	// contains filtered or unexported fields
}

func NewSpinner

func NewSpinner(prefix, suffix string) *Spinner

func (*Spinner) Start

func (s *Spinner) Start()

func (*Spinner) Stop

func (s *Spinner) Stop()

type StdoutLogger

type StdoutLogger struct {
	// contains filtered or unexported fields
}

StdoutLogger is a stdout logging implementation.

func NewStdoutLogger

func NewStdoutLogger(level int) *StdoutLogger

NewStdoutLogger returns a new stdout logger.

func (*StdoutLogger) Debug

func (s *StdoutLogger) Debug(msg string)

func (*StdoutLogger) Error

func (s *StdoutLogger) Error(msg string)

func (*StdoutLogger) Info

func (s *StdoutLogger) Info(msg string)

func (*StdoutLogger) StartProgress

func (s *StdoutLogger) StartProgress(msg string)

func (*StdoutLogger) StopProgress

func (s *StdoutLogger) StopProgress()

Jump to

Keyboard shortcuts

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