commands

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2017 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccountsPathFlag   string
	ValidatorsPathFlag string
)

TODO refactor these vars into a struct?

View Source
var ErisClientCmd = &cobra.Command{
	Use:   "eris-client",
	Short: "Eris-client interacts with a running Eris chain.",
	Long: `Eris-client interacts with a running Eris chain.

Made with <3 by Monax Industries.

Complete documentation is available at https://monax.io/docs
` + "\nVERSION:\n " + version.VERSION,
	Run: func(cmd *cobra.Command, args []string) { cmd.Help() },
}
View Source
var GenesisGenCmd = &cobra.Command{
	Use:   "make-genesis",
	Short: "eris-client make-genesis creates a genesis.json with known inputs",
	Long:  "eris-client make-genesis creates a genesis.json with known inputs",

	Run: func(cmd *cobra.Command, args []string) {

		genesisFile, err := genesis.GenerateKnown(args[0], AccountsPathFlag, ValidatorsPathFlag)
		if err != nil {
			sanity.PanicSanity(err)
		}
		fmt.Println(genesisFile)
	},
}

Functions

func AddClientCommands

func AddClientCommands()

func AddGlobalFlags

func AddGlobalFlags()

func Execute

func Execute()

func InitErisClientInit

func InitErisClientInit()

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