commands

package
v0.4.13 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: GPL-3.0 Imports: 38 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Root

func Root(appVersion string) *cobra.Command

Root configure and return root command

func ShowError added in v0.4.4

func ShowError(printer Printer, message string, err error)

ShowError prints message and chained error in requested format

Types

type ExtendedDealInfo added in v0.4.6

type ExtendedDealInfo struct {
	*sonm.DealInfoReply
	ChangeRequests *sonm.DealChangeRequestsReply `json:"changeRequests"`
	Ask            *sonm.Order                   `json:"ask"`
	Bid            *sonm.Order                   `json:"bid"`
}

type IDErrorTuple added in v0.4.13

type IDErrorTuple struct {
	ID  string `json:"id"`
	Err string `json:"err"`
}

type IndentPrinter added in v0.4.6

type IndentPrinter struct {
	Subprinter Printer
	IdentCount uint64
	Ident      rune
}

func (*IndentPrinter) Printf added in v0.4.6

func (m *IndentPrinter) Printf(format string, args ...interface{})

func (*IndentPrinter) Println added in v0.4.6

func (m *IndentPrinter) Println(args ...interface{})

type Printer added in v0.4.6

type Printer interface {
	Printf(string, ...interface{})
	Println(i ...interface{})
}

Jump to

Keyboard shortcuts

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