mirror of
https://source.quilibrium.com/quilibrium/ceremonyclient.git
synced 2024-11-15 04:35:17 +00:00
32 lines
435 B
Go
32 lines
435 B
Go
package cmd
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var configDirectory string
|
|
var simulateFail bool
|
|
|
|
var rootCmd = &cobra.Command{
|
|
Use: "qclient",
|
|
Short: "Quilibrium RPC Client",
|
|
}
|
|
|
|
func Execute() {
|
|
err := rootCmd.Execute()
|
|
if err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.PersistentFlags().StringVar(
|
|
&configDirectory,
|
|
"config",
|
|
"../node/.config/",
|
|
"config directory (default is ../node/.config/)",
|
|
)
|
|
}
|