cmd

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvironmentPrefix = "AG"
)
View Source
const PeerIDLength = 39

Variables

This section is empty.

Functions

func Execute

func Execute()

func GetServerAddress

func GetServerAddress() string

GetServerAddress return ip address and port of server

func Must

func Must(a0 string, a1 error) string

Types

type CliConfig

type CliConfig struct {
	Host string `mapstructure:"host" description:"Target server host. default is localhost"`
	Port int    `mapstructure:"port" description:"Target server port. default is 7845"`
}

CliConfig is configs for aergo cli.

type CliContext

type CliContext struct {
	config.BaseContext
}

func NewCliContext

func NewCliContext(homePath string, configFilePath string) *CliContext

func (*CliContext) GetConfigFileName

func (ctx *CliContext) GetConfigFileName() string

func (*CliContext) GetDefaultConfig

func (ctx *CliContext) GetDefaultConfig() interface{}

GetDefaultConfig return cliconfig with default value. It ALWAYS returns NEW object.

func (*CliContext) GetHomePath

func (ctx *CliContext) GetHomePath() string

func (*CliContext) GetTemplate

func (ctx *CliContext) GetTemplate() string

Directories

Path Synopsis
Package mock_types is a generated GoMock package.
Package mock_types is a generated GoMock package.

Jump to

Keyboard shortcuts

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