Skip to content
Snippets Groups Projects
Commit 002a1ff9 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

remove/comment unused cli opts

parent 7edcc062
No related branches found
No related tags found
No related merge requests found
...@@ -23,32 +23,6 @@ import ( ...@@ -23,32 +23,6 @@ import (
"time" "time"
) )
var verbose bool
var userId uint64
var privateKeyPath string
var destinationUserId uint64
var destinationUserIDBase64 string
var message string
var sessionFile string
var noBlockingTransmission bool
var rateLimiting uint32
var registrationCode string
var username string
var end2end bool
var keyParams []string
var ndfPath string
var skipNDFVerification bool
var ndfPubKey string
var sessFilePassword string
var noTLS bool
var searchForUser string
var waitForMessages uint
var messageTimeout uint
var messageCnt uint
var precanned = false
var logPath string = ""
var notificationToken string
// Execute adds all child commands to the root command and sets flags // Execute adds all child commands to the root command and sets flags
// appropriately. This is called by main.main(). It only needs to // appropriately. This is called by main.main(). It only needs to
// happen once to the rootCmd. // happen once to the rootCmd.
...@@ -157,8 +131,6 @@ var rootCmd = &cobra.Command{ ...@@ -157,8 +131,6 @@ var rootCmd = &cobra.Command{
jww.FATAL.Panicf("%+v", err) jww.FATAL.Panicf("%+v", err)
} }
time.Sleep(10 * time.Second)
// Wait until connected or crash on timeout // Wait until connected or crash on timeout
connected := make(chan bool, 1) connected := make(chan bool, 1)
client.GetHealth().AddChannel(connected) client.GetHealth().AddChannel(connected)
...@@ -326,22 +298,15 @@ func init() { ...@@ -326,22 +298,15 @@ func init() {
// Cobra also supports local flags, which will only run // Cobra also supports local flags, which will only run
// when this action is called directly. // when this action is called directly.
rootCmd.Flags().StringVarP(&notificationToken, "nbRegistration", "x", "", // rootCmd.Flags().StringVarP(&notificationToken, "nbRegistration", "x", "",
"Token to register user with notification bot") // "Token to register user with notification bot")
rootCmd.PersistentFlags().BoolVarP(&end2end, "end2end", "", false,
"Send messages with E2E encryption to destination user. Must have found each other via UDB first")
rootCmd.PersistentFlags().StringSliceVarP(&keyParams, "keyParams", "",
make([]string, 0), "Define key generation parameters. Pass values in comma separated list"+
" in the following order: MinKeys,MaxKeys,NumRekeys,TTLScalar,MinNumKeys")
rootCmd.Flags().StringVar(&destinationUserIDBase64, "dest64", "", // rootCmd.PersistentFlags().BoolVarP(&end2end, "end2end", "", false,
"Sets the destination user id encoded in base 64") // "Send messages with E2E encryption to destination user. Must have found each other via UDB first")
rootCmd.Flags().UintVarP(&waitForMessages, "waitForMessages", // rootCmd.PersistentFlags().StringSliceVarP(&keyParams, "keyParams", "",
"w", 1, "Denotes the number of messages the "+ // make([]string, 0), "Define key generation parameters. Pass values in comma separated list"+
"client should receive before closing") // " in the following order: MinKeys,MaxKeys,NumRekeys,TTLScalar,MinNumKeys")
// rootCmd.Flags().StringVarP(&searchForUser, "SearchForUser", "s", "", // rootCmd.Flags().StringVarP(&searchForUser, "SearchForUser", "s", "",
// "Sets the email to search for to find a user with user discovery") // "Sets the email to search for to find a user with user discovery")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment