commands

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2022 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BystackcliCmd = &cobra.Command{
	Use:   "bystackd",
	Short: "Bystackcli is a commond line client for bytom core (a.k.a. bystackd)",
	Run: func(cmd *cobra.Command, args []string) {
		if len(args) < 1 {
			cmd.SetUsageTemplate(usageTemplate)
			cmd.Usage()
		}
	},
}

BystackcliCmd is Bystackcli's root command. Every other command attached to BystackcliCmd is a child command to it.

Functions

func AddCommands

func AddCommands()

AddCommands adds child commands to the root command BystackcliCmd.

func AddTemplateFunc

func AddTemplateFunc()

AddTemplateFunc adds usage template to the root command BystackcliCmd.

func Execute

func Execute()

Execute adds all child commands to the root command BystackcliCmd and sets flags appropriately.

Types

This section is empty.

Jump to

Keyboard shortcuts

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