package commands import ( "encoding/hex" "fmt" "io/ioutil" "os" "strings" "github.com/pkg/errors" "github.com/spf13/cobra" "github.com/spf13/viper" tcmd "github.com/tendermint/tendermint/cmd/tendermint/commands" "github.com/tendermint/tendermint/config" cmn "github.com/tendermint/tmlibs/common" ) // InitCmd - node initialization command var InitCmd = &cobra.Command{ Use: "init [address]", Short: "Initialize genesis files for a blockchain", RunE: initCmd, } //nolint - flags var ( FlagChainID = "chain-id" //TODO group with other flags or remove? is this already a flag here? FlagOption = "option" ) func init() { InitCmd.Flags().String(FlagChainID, "test_chain_id", "Chain ID") InitCmd.Flags().StringSliceP(FlagOption, "p", []string{}, "Genesis option in the format /