Skip to content
Snippets Groups Projects
Unverified Commit 9ecdb7ac authored by Benjamin Bollen's avatar Benjamin Bollen
Browse files

cmd/eris-db: minor cleanup

parent dbe9f683
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,6 @@ import (
version "github.com/eris-ltd/eris-db/version"
)
const VERSION = version.VERSION
// Global Do struct
var do *definitions.Do
......@@ -44,7 +42,7 @@ your needs.
Made with <3 by Eris Industries.
Complete documentation is available at https://docs.erisindustries.com
` + "\nVERSION:\n " + VERSION,
` + "\nVERSION:\n " + version.VERSION,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
log.SetLevel(log.WarnLevel)
......@@ -94,12 +92,6 @@ func defaultDebug() bool {
return setDefaultBool("ERIS_DB_DEBUG", false)
}
// defaultOutput is set to true unless the ERIS_DB_OUTPUT environment
// variable is set to a parsable boolean.
func defaultOutput() bool {
return setDefaultBool("ERIS_DB_OUTPUT", true)
}
// setDefaultBool returns the provided default value if the environment variab;e
// is not set or not parsable as a bool.
func setDefaultBool(environmentVariable string, defaultValue bool) bool {
......
......@@ -17,46 +17,9 @@
package main
import (
"github.com/eris-ltd/eris-db/cmd"
commands "github.com/eris-ltd/eris-db/cmd"
)
func main() {
commands.Execute()
}
// package main
//
// import (
// "fmt"
// edb "github.com/eris-ltd/eris-db/erisdb"
// "os"
// )
//
// // TODO the input stuff.
// func main() {
// args := os.Args[1:]
// var baseDir string
// var inProc bool
// if len(args) > 0 {
// baseDir = args[0]
// if len(args) > 1 {
// if args[1] == "inproc" {
// inProc = true
// }
// }
// } else {
// baseDir = os.Getenv("HOME") + "/.erisdb"
// }
//
// proc, errSt := edb.ServeErisDB(baseDir, inProc)
// if errSt != nil {
// panic(errSt.Error())
// }
// errSe := proc.Start()
// if errSe != nil {
// panic(errSe.Error())
// }
// // TODO For now.
// fmt.Println("DONTMINDME55891")
// <-proc.StopEventChannel()
// }
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment