// initialise an empty do struct for command execution
do=definitions.NowDo()
}
funcAddCommands(){
buildServeCommand()
ErisDbCmd.AddCommand()
// name of the configuration file without extension
do.Config.SetConfigName("config")
do.Config.SetConfigType("yaml")
// look for configuration file in the working directory
do.Config.AddConfigPath(".")
// but let's move the location of the configuration to
}
funcAddGlobalFlags(){
...
...
@@ -73,6 +76,13 @@ func AddGlobalFlags() {
ErisDbCmd.PersistentFlags().BoolVarP(&do.Output,"output","o",defaultOutput(),"should eris-db provide an output of its execution; default respects $ERIS_DB_OUTPUT")
@@ -36,15 +36,28 @@ manager. The client API can be disabled.`,
Example:`$ eris-db serve -- will start the Eris-DB node based on the configuration file in the current working directory,
$ eris-db serve myChainId --work-dir=/path/to/config -- will start the Eris-DB node based on the configuration file provided and assert the chain id matches.`,