utils

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FmtStringArgs

func FmtStringArgs(args ...string) string

func MakeCosmosConfigPath

func MakeCosmosConfigPath(strHome, strFileName string) string

func ParseP2PPort

func ParseP2PPort(strAddr string) string

ParseP2PPort parse comsos p2p port from listen address. eg. "tcp://0.0.0.0:26656"

Types

type CmdExecutor

type CmdExecutor struct {
	Debug bool
}

func NewCmdExecutor

func NewCmdExecutor(debug bool) *CmdExecutor

func (*CmdExecutor) Run

func (m *CmdExecutor) Run(name string, args ...string) (output string, err error)

func (*CmdExecutor) Shell

func (m *CmdExecutor) Shell(cmdline string) (output string, err error)

func (*CmdExecutor) Which

func (m *CmdExecutor) Which(cmd string) bool

Jump to

Keyboard shortcuts

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