cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2019 License: MIT Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArgValidatorAssetOrP

func ArgValidatorAssetOrP(cmd *cobra.Command, arg string) error

ArgValidatorAssetAndAll checks for valid asset or 'all'

func Execute

func Execute()

Execute is cobra's entry point

func FactoidToFactoshi

func FactoidToFactoshi(amt string) int64

FactoidToFactoshi takes a Factoid amount as a string and returns the value in factoids

func FactoshiToFactoid

func FactoshiToFactoid(i int64) string

FactoshiToFactoid converts a uint64 factoshi ammount into a fixed point number represented as a string

func ReadConfig

func ReadConfig(cmd *cobra.Command, args []string)

ReadConfig can be put as a PreRun for a command that uses the config file

func SoftReadConfig

func SoftReadConfig(cmd *cobra.Command, args []string)

SoftReadConfig will not fail. It can be used for a command that needs the config, but is happy with the defaults

Types

This section is empty.

Jump to

Keyboard shortcuts

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