ceremonyclient/client/cmd/root.go

32 lines
419 B
Go
Raw Normal View History

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",
2024-05-25 05:07:57 +00:00
".config/",
"config directory (default is .config/)",
)
}