cmd

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is git commit information at build time
	Version string
)

Functions

func CidFlag added in v1.1.0

func CidFlag(usage string) *cli.StringFlag

CidFlag is used to indicate the cid to proccess

func DataFlag added in v1.2.0

func DataFlag(usage string) *cli.StringFlag

DataFlag indicates some arbitrary string data

func InputFileFlag added in v1.1.0

func InputFileFlag() *cli.StringFlag

InputFileFlag allows reading data from a file

func IsHexEncodedFlag added in v1.1.0

func IsHexEncodedFlag() *cli.BoolFlag

IsHexEncodedFlag indicates if the data is hex encoded

func IsMnemonicEncodedFlag added in v1.1.0

func IsMnemonicEncodedFlag() *cli.BoolFlag

IsMnemonicEncodedFlag indicates if the data is encoded as mnemonic

func KeyName added in v1.1.0

func KeyName() *cli.StringFlag

KeyName indicates the name of the key

func KeySize added in v1.1.0

func KeySize() *cli.IntFlag

KeySize indicates the size of a key, default size suitable for all but RSA

func KeyType added in v1.1.0

func KeyType() *cli.StringFlag

KeyType indicates the type of key

func LinkCidFlag added in v1.2.0

func LinkCidFlag(usage string) *cli.StringFlag

LinkCidFlag indicates the cid of a link

func LinkNameFlag added in v1.2.0

func LinkNameFlag(usage string) *cli.StringFlag

LinkNameFlag indicates the name of a link in IPLD object management

func LoadAPICommands

func LoadAPICommands() cli.Commands

LoadAPICommands returns an api commands object

func LoadAdminCommands

func LoadAdminCommands() cli.Commands

LoadAdminCommands returns an admin api commands object

func LoadClientCommands

func LoadClientCommands() cli.Commands

LoadClientCommands returns a gRPC client commands object

func LoadExtrasCommands

func LoadExtrasCommands() cli.Commands

LoadExtrasCommands returns an extras commands object

func LoadFileCommands

func LoadFileCommands() cli.Commands

LoadFileCommands returns a file commands object

func LoadKeystoreCommands

func LoadKeystoreCommands() cli.Commands

LoadKeystoreCommands returns keystore management commands

func LoadNameSysCommands

func LoadNameSysCommands() cli.Commands

LoadNameSysCommands returns namesys api commands

func LoadPubSubCommands

func LoadPubSubCommands() cli.Commands

LoadPubSubCommands returns a cli commands object for the grpc pubsub client

func LoadUtilCommands added in v1.1.0

func LoadUtilCommands() cli.Commands

LoadUtilCommands returns generalized utility commands

func MnemonicFlag added in v1.1.0

func MnemonicFlag() *cli.StringFlag

MnemonicFlag allows saving data as a mnemonic

func MultiAddrFlag added in v1.1.0

func MultiAddrFlag(usage string) *cli.StringFlag

MultiAddrFlag indicates the multi address to use

func MultiHashFlag added in v1.2.0

func MultiHashFlag() *cli.StringFlag

MultiHashFlag enables specifying the multihash to use

func ObjectEncodingFlag added in v1.2.0

func ObjectEncodingFlag() *cli.StringFlag

ObjectEncodingFlag enables specifying alternate encoding formats for creating objects

func OutputFlag added in v1.1.0

func OutputFlag() *cli.StringFlag

OutputFlag helps to control the style of output

func P2pFlags added in v1.1.0

func P2pFlags(cmdFlag *cli.StringFlag) []cli.Flag

P2pFlags are used to control p2p stream takes in an argument which is a command that should be loaded with a default value. This is appended to the default p2p command flag list

func PeerIDFlag added in v1.1.0

func PeerIDFlag(usage string) *cli.StringFlag

PeerIDFlag indicates the peerID

func PrintProgressFlag added in v1.1.0

func PrintProgressFlag() *cli.BoolFlag

PrintProgressFlag enables printing the progress of uploads

func SerializationFormatFlag added in v1.2.0

func SerializationFormatFlag() *cli.StringFlag

SerializationFormatFlag enables specifying alternate serialization formats

func SetupCommands

func SetupCommands(cctx context.Context, ccancel context.CancelFunc)

SetupCommands MUST be called to properly setup the commands repository DEPRECATED: is now a no-op

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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