erigon-pulse/cmd/devnettest/commands/root.go
primal_concrete_sledge 69671cf6c6
WIP:feature/rewrite-devnettest-to-cobra (#3227)
* WIP:feature/rewrite-devnettest-to-cobra

* Add parity commands

* Update dev chain md
2022-01-14 13:08:41 +00:00

37 lines
681 B
Go

package commands
import (
"fmt"
"github.com/spf13/cobra"
)
var (
clearDev bool
reqId int
)
func init() {
rootCmd.PersistentFlags().BoolVar(&clearDev, "clear-dev", false, "Determines if service should clear /dev after this call")
rootCmd.PersistentFlags().IntVar(&reqId, "req-id", 0, "Defines number of request id")
}
var rootCmd = &cobra.Command{
Use: "devnettest",
Short: "Devnettest root command",
}
// Execute executes the root command.
func Execute() error {
return rootCmd.Execute()
}
func clearDevDB() {
fmt.Printf("Clearing ~/dev\n")
//
//_, err := exec.Command("rm", "-rf", "~/dev", "~/dev2").Output()
//if err != nil {
// fmt.Println(err)
//}
}