Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
002a1ff9
Commit
002a1ff9
authored
4 years ago
by
Richard T. Carback III
Browse files
Options
Downloads
Patches
Plain Diff
remove/comment unused cli opts
parent
7edcc062
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/root.go
+7
-42
7 additions, 42 deletions
cmd/root.go
with
7 additions
and
42 deletions
cmd/root.go
+
7
−
42
View file @
002a1ff9
...
@@ -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(¬ificationToken, "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
()
.
String
Var
(
&
destinationUserIDBase64
,
"dest64"
,
""
,
//
rootCmd.
Persistent
Flags().
Bool
Var
P
(&
end2end, "end2end", "", false
,
"Se
ts the destination user id encoded in base 64
"
)
//
"Se
nd 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")
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment