// initialise an empty do struct for command execution
do=definitions.NowDo()
// 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(){
ErisDbCmd.PersistentFlags().BoolVarP(&do.Verbose,"verbose","v",defaultVerbose(),"verbose output; more output than no output flags; less output than debug level; default respects $ERIS_DB_VERBOSE")
ErisDbCmd.PersistentFlags().BoolVarP(&do.Debug,"debug","d",defaultDebug(),"debug level output; the most output available for eris-db; if it is too chatty use verbose flag; default respects $ERIS_DB_DEBUG")
ErisDbCmd.PersistentFlags().BoolVarP(&do.Output,"output","o",defaultOutput(),"should eris-db provide an output of its execution; default respects $ERIS_DB_OUTPUT")
@@ -35,9 +32,6 @@ The Eris-DB node is modularly configured for the consensus engine and applicatio
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.`,
defaultWorkDir(),"specify the working directory for the chain to run. If omitted, and no path set in $ERIS_DB_WORKDIR, the current working directory is taken.")