Documentation ¶
Overview ¶
Package cli defines constants, configurations, and utilities that are used across the Flow CLI.
Index ¶
- Constants
- Variables
- func ContainsString(s []string, e string) bool
- func ConvertSigAndHashAlgo(signatureAlgorithm string, hashingAlgorithm string) (crypto.SignatureAlgorithm, crypto.HashAlgorithm, error)
- func CreateTabWriter(b *bytes.Buffer) *tabwriter.Writer
- func EnvFromNetwork(network flow.ChainID) templates.Environment
- func Exit(code int, msg string)
- func Exitf(code int, msg string, args ...interface{})
- func GcloudApplicationSignin(resourceID string) error
- func GetAddressNetwork(address flow.Address) (flow.ChainID, error)
- func IsByteSlice(v interface{}) bool
- func LoadFile(filename string) ([]byte, error)
- func ParseAddress(value string) (flow.Address, bool)
- func RandomSeed(n int) ([]byte, error)
- func RemoveFromStringArray(s []string, el string) []string
- func StringContains(s []string, e string) bool
Constants ¶
View Source
const (
EnvPrefix = "FLOW"
)
Variables ¶
View Source
var Bold = color.New(color.FgCyan).SprintfFunc()
Functions ¶
func ContainsString ¶ added in v0.18.0
func ConvertSigAndHashAlgo ¶
func ConvertSigAndHashAlgo( signatureAlgorithm string, hashingAlgorithm string, ) (crypto.SignatureAlgorithm, crypto.HashAlgorithm, error)
ConvertSigAndHashAlgo parses and validates a signature and hash algorithm pair.
func EnvFromNetwork ¶
func EnvFromNetwork(network flow.ChainID) templates.Environment
func GcloudApplicationSignin ¶
GcloudApplicationSignin signs in as an application user using gcloud command line tool currently assumes gcloud is already installed on the machine will by default pop a browser window to sign in
func GetAddressNetwork ¶
func GetAddressNetwork(address flow.Address) (flow.ChainID, error)
GetAddressNetwork returns the chain ID for an address.
func IsByteSlice ¶
func IsByteSlice(v interface{}) bool
func ParseAddress ¶ added in v0.18.0
func RandomSeed ¶
func RemoveFromStringArray ¶ added in v0.19.0
func StringContains ¶
StringContains returns true if the slice contains the given string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.