mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-07 11:32:20 +00:00
26 lines
502 B
Go
26 lines
502 B
Go
|
package commands
|
||
|
|
||
|
import (
|
||
|
"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()
|
||
|
}
|