cmd

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: AGPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd

Types

type CLIConfig

type CLIConfig struct {
	APIHostPort                string `json:"apiHostPort"`
	APISecure                  bool   `json:"apiSecure"`
	ProvendbAPIGatewayEndpoint string `json:"provendbApiGatewayEndpoint"`
	DevToken                   string `json:"devToken,omitempty"`
}

CLIConfig represents a CLI config

func (*CLIConfig) Load

func (c *CLIConfig) Load() error

Load loads the CLI config from the user's config location

func (*CLIConfig) Save

func (c *CLIConfig) Save() error

Save saves the CLI config to the user's config location

type CloudTrie added in v0.3.0

type CloudTrie struct {
	ID      string `json:"id"`
	ProofID string `json:"proofId"`
}

CloudTrie represents the info object for a cloud trie

func (*CloudTrie) Load added in v0.3.0

func (c *CloudTrie) Load(filePath string) error

Load loads the cloud trie from a file

func (*CloudTrie) Save added in v0.3.0

func (c *CloudTrie) Save(filePath string) error

Save saves the cloud trie to a file

Jump to

Keyboard shortcuts

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