Short:"Eris-DB is the beating heart of the eris chain."
...
...
@@ -47,17 +51,48 @@ Complete documentation is available at https://docs.erisindustries.com
}
funcExecute(){
InitErisDb()
AddGlobalFlags()
AddCommands()
ErisDbCmd.Execute()
}
funcInitErisDb(){
// initialise an empty do struct for command execution
do=definitions.NowDo()
}
funcAddCommands(){
buildServeCommand()
ErisDbCmd.AddCommand()
}
funcAddGlobalFlags(){
ErisCMCmd.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")
ErisCMCmd.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")
ErisCMCmd.PersistentFlags().BoolVarP(&do.Output,"output","o",defaultOutput(),"should eris-db provide an output of its job; default respects $ERIS_DB_OUTPUT")
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")
Short:"Eris-DB serve starts an eris-db node with client API enabled by default.",
Long:`Eris-DB serve starts an eris-db node with client API enabled by default.
The Eris-DB node is modularly configured for the consensus engine and application
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.`,