Documentation ¶
Overview ¶
Package cli defines constants, configurations, and utilities that are used across the Flow CLI.
Index ¶
- Constants
- func AbsolutePath(basePath, filePath string) string
- func AddToGitIgnore(filename string, loader ReaderWriter) error
- func CreateTabWriter(b *bytes.Buffer) *tabwriter.Writer
- func EnvFromNetwork(network flow.ChainID) templates.Environment
- func Exit(code int, msg string)
- func GetAddressNetwork(address flow.Address) (flow.ChainID, error)
- func ParseAddress(value string) (flow.Address, bool)
- func RandomSeed(n int) ([]byte, error)
- func RemoveFromStringArray(s []string, el string) []string
- func ValidateECDSAP256Pub(key string) error
- type ReaderWriter
- type ScriptQuery
Constants ¶
View Source
const (
EnvPrefix = "FLOW"
)
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶
func AddToGitIgnore ¶
func AddToGitIgnore(filename string, loader ReaderWriter) error
AddToGitIgnore adds a new line to the .gitignore if one doesn't exist it creates it.
func EnvFromNetwork ¶
func EnvFromNetwork(network flow.ChainID) templates.Environment
func GetAddressNetwork ¶
func GetAddressNetwork(address flow.Address) (flow.ChainID, error)
GetAddressNetwork returns the chain ID for an address.
func ParseAddress ¶
func RandomSeed ¶
func RemoveFromStringArray ¶
func ValidateECDSAP256Pub ¶
ValidateECDSAP256Pub attempt to decode the hex string representation of a ECDSA P256 public key
Types ¶
type ReaderWriter ¶
type ScriptQuery ¶
type ScriptQuery struct { ID flow.Identifier Height uint64 }
Click to show internal directories.
Click to hide internal directories.