commands

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2018 License: GPL-3.0 Imports: 36 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(cmd *cobra.Command, message string, err error)

ShowError prints message and chained error in requested format

Types

type ExtendedDealInfo added in v0.4.6

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

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