예제 #1
0
		util.ClearJobResults()

		// Welcomer....
		logger.Infoln("Hello! I'm EPM.")

		// Fixes path issues and controls for mint-client / eris-keys assumptions
		util.BundleHttpPathCorrect(do)
		util.PrintPathPackage(do)

		// Populates chainID from the chain (if its not passed)
		IfExit(util.GetChainID(do))

		// Populates the tendermint config object for proper websocket connection
		config.Set("chain_id", do.ChainID)
		config.Set("log_level", "error")
		cfg.ApplyConfig(config)
	},

	Run: RunPackage,

	PersistentPostRun: func(cmd *cobra.Command, args []string) {
		// Ensure that errors get written to screen and generally flush the log
		log.Flush()
	},
}

func Execute() {
	InitEPM()
	AddGlobalFlags()
	EPMCmd.Execute()
}
예제 #2
0
func init() {
	// Creates ~/.tendermint_test/*
	config := GetConfig("")
	cfg.ApplyConfig(config)
}
예제 #3
0
func init() {
	cfg.ApplyConfig(tmcfg.GetConfig(""))
}