Documentation
¶
Index ¶
- Constants
- func AccountNamePrompt(accounts *flowkit.Accounts) string
- func ApproveTransactionForBuildingPrompt(transaction *flowkit.Transaction) bool
- func ApproveTransactionForSendingPrompt(transaction *flowkit.Transaction) bool
- func ApproveTransactionForSigningPrompt(transaction *flowkit.Transaction) bool
- func ApproveTransactionPrompt(transaction *flowkit.Transaction, promptMsg string) bool
- func AutocompletionPrompt() (string, string)
- func Bold(msg string) string
- func ConfirmOpenBrowser()
- func CreateAccountNetworkPrompt() (string, config.Network)
- func ErrorEmoji() string
- func GoEmoji() string
- func Green(msg string) string
- func InstallPathPrompt(defaultPath string) string
- func InstallPrompt() int
- func Italic(msg string) string
- func Magenta(msg string) string
- func NamePrompt() string
- func NewAccountPrompt() map[string]string
- func NewContractPrompt() map[string]string
- func NewDeploymentPrompt(networks config.Networks, accounts config.Accounts, contracts config.Contracts) map[string]interface{}
- func NewNetworkPrompt() map[string]string
- func OkEmoji() string
- func Red(msg string) string
- func RemoveAccountPrompt(accounts config.Accounts) string
- func RemoveContractPrompt(contracts config.Contracts) string
- func RemoveDeploymentPrompt(deployments config.Deployments) (account string, network string)
- func RemoveNetworkPrompt(networks config.Networks) string
- func ReportCrash() bool
- func SaveEmoji() string
- func ScaffoldPrompt(logger Logger, availableScaffolds map[string][]string) int
- func ShowContractDiffPrompt(newContract []byte, existingContract []byte) bool
- func StopEmoji() string
- func SuccessEmoji() string
- func TryEmoji() string
- func WantToContinue() bool
- func WantToUseMainnetVersionPrompt() bool
- func WarningEmoji() string
- type Logger
- type Spinner
- type StdoutLogger
Constants ¶
View Source
const ( NoneLog = 0 ErrorLog = 1 DebugLog = 2 InfoLog = 3 )
View Source
const AlreadyInstalled = 2
View Source
const CancelInstall = 1
Variables ¶
This section is empty.
Functions ¶
func AccountNamePrompt ¶
func ApproveTransactionForBuildingPrompt ¶
func ApproveTransactionForBuildingPrompt(transaction *flowkit.Transaction) bool
func ApproveTransactionForSendingPrompt ¶
func ApproveTransactionForSendingPrompt(transaction *flowkit.Transaction) bool
func ApproveTransactionForSigningPrompt ¶
func ApproveTransactionForSigningPrompt(transaction *flowkit.Transaction) bool
func ApproveTransactionPrompt ¶
func ApproveTransactionPrompt(transaction *flowkit.Transaction, promptMsg string) bool
func AutocompletionPrompt ¶
func ConfirmOpenBrowser ¶
func ConfirmOpenBrowser()
func ErrorEmoji ¶
func ErrorEmoji() string
func InstallPathPrompt ¶
func InstallPrompt ¶
func InstallPrompt() int
func NamePrompt ¶
func NamePrompt() string
func NewAccountPrompt ¶
func NewContractPrompt ¶
func NewDeploymentPrompt ¶
func NewNetworkPrompt ¶
func RemoveAccountPrompt ¶
func RemoveContractPrompt ¶
func RemoveDeploymentPrompt ¶
func RemoveDeploymentPrompt(deployments config.Deployments) (account string, network string)
func RemoveNetworkPrompt ¶
func ReportCrash ¶
func ReportCrash() bool
func ScaffoldPrompt ¶
func ShowContractDiffPrompt ¶
ShowContractDiffPrompt shows a diff between the new contract and the existing contract and asks the user if they wish to continue with the deployment returns true if the user wishes to continue with the deployment and false otherwise
func SuccessEmoji ¶
func SuccessEmoji() string
func WantToContinue ¶
func WantToContinue() bool
func WantToUseMainnetVersionPrompt ¶
func WantToUseMainnetVersionPrompt() bool
func WarningEmoji ¶
func WarningEmoji() string
Types ¶
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()
Click to show internal directories.
Click to hide internal directories.