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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
elixxir
client
Commits
6f9d6b70
Commit
6f9d6b70
authored
Feb 17, 2022
by
Josh Brooks
Browse files
Options
Downloads
Patches
Plain Diff
Add CLI option
parent
674a3d77
No related branches found
No related tags found
2 merge requests
!231
Revert "Update store to print changes to the partners list"
,
!167
Xx 3789/delete individual requests
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/root.go
+30
-0
30 additions, 0 deletions
cmd/root.go
with
30 additions
and
0 deletions
cmd/root.go
+
30
−
0
View file @
6f9d6b70
...
@@ -316,6 +316,18 @@ var rootCmd = &cobra.Command{
...
@@ -316,6 +316,18 @@ var rootCmd = &cobra.Command{
client
.
DeleteAllRequests
()
client
.
DeleteAllRequests
()
}
}
if
viper
.
GetBool
(
"delete-receive-request"
)
{
client
.
DeleteReceiveRequest
(
recipientID
)
}
if
viper
.
GetBool
(
"delete-sent-request"
)
{
client
.
DeleteSentRequest
(
recipientID
)
}
if
viper
.
GetBool
(
"delete-request"
)
{
client
.
DeleteRequest
(
recipientID
)
}
msg
:=
message
.
Send
{
msg
:=
message
.
Send
{
Recipient
:
recipientID
,
Recipient
:
recipientID
,
Payload
:
[]
byte
(
msgBody
),
Payload
:
[]
byte
(
msgBody
),
...
@@ -1057,6 +1069,24 @@ func init() {
...
@@ -1057,6 +1069,24 @@ func init() {
viper
.
BindPFlag
(
"delete-all-requests"
,
viper
.
BindPFlag
(
"delete-all-requests"
,
rootCmd
.
PersistentFlags
()
.
Lookup
(
"delete-all-requests"
))
rootCmd
.
PersistentFlags
()
.
Lookup
(
"delete-all-requests"
))
rootCmd
.
PersistentFlags
()
.
Bool
(
"delete-receive-request"
,
false
,
"Delete receive request for the specified ID given by the "
+
"destfile contact file."
)
viper
.
BindPFlag
(
"delete-receive-request"
,
rootCmd
.
PersistentFlags
()
.
Lookup
(
"delete-receive-request"
))
rootCmd
.
PersistentFlags
()
.
Bool
(
"delete-sent-request"
,
false
,
"Delete sent request for the specified ID given by the "
+
"destfile flag's contact file."
)
viper
.
BindPFlag
(
"delete-sent-request"
,
rootCmd
.
PersistentFlags
()
.
Lookup
(
"delete-sent-request"
))
rootCmd
.
PersistentFlags
()
.
Bool
(
"delete-request"
,
false
,
"Delete the request for the specified ID given by the "
+
"destfile flag's contact file."
)
viper
.
BindPFlag
(
"delete-request"
,
rootCmd
.
PersistentFlags
()
.
Lookup
(
"delete-request"
))
rootCmd
.
Flags
()
.
BoolP
(
"send-auth-request"
,
""
,
false
,
rootCmd
.
Flags
()
.
BoolP
(
"send-auth-request"
,
""
,
false
,
"Send an auth request to the specified destination and wait"
+
"Send an auth request to the specified destination and wait"
+
"for confirmation"
)
"for confirmation"
)
...
...
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