Dero Virtual Machine Light Version A standalone version of the Stargate Testnet DVM, working in a offline mode.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
480B

  1. package main
  2. import (
  3. "fmt"
  4. "git.dero.io/b9ron/dvml/config"
  5. "git.dero.io/b9ron/dvml/prompt"
  6. dvml "git.dero.io/b9ron/dvml/vm"
  7. )
  8. func main() {
  9. config.Init()
  10. // check the numbers of cli args
  11. if config.DeroScFile == "" {
  12. fmt.Printf("\n" + config.Version + "\n")
  13. fmt.Printf("\tUsage (case sensitive): dvml --help\n\n")
  14. return
  15. }
  16. if config.JsonFile != "" {
  17. dvml.GetDvml().RunTestFunctions(config.JsonFile)
  18. return
  19. }
  20. dvml.GetDvml().PrintUsage()
  21. prompt.Run()
  22. }