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
d2277e2f
Commit
d2277e2f
authored
Nov 15, 2022
by
Jonah Husson
Browse files
Options
Downloads
Patches
Plain Diff
Change channel name arg to not conflict with group
parent
4057fc63
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!510
Release
,
!458
Change channel name arg to not conflict with group
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmd/broadcast.go
+1
-0
1 addition, 0 deletions
cmd/broadcast.go
cmd/flags.go
+4
-3
4 additions, 3 deletions
cmd/flags.go
with
5 additions
and
3 deletions
cmd/broadcast.go
+
1
−
0
View file @
d2277e2f
...
...
@@ -81,6 +81,7 @@ var broadcastCmd = &cobra.Command{
if
viper
.
GetBool
(
broadcastNewFlag
)
{
// Create a new broadcast channel
jww
.
INFO
.
Printf
(
"Name: %s"
,
name
)
channel
,
pk
,
err
=
crypto
.
NewChannel
(
name
,
desc
,
crypto
.
Public
,
user
.
GetCmix
()
.
GetMaxMessageLength
(),
user
.
GetRng
()
.
GetStream
())
if
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
cmd/flags.go
+
4
−
3
View file @
d2277e2f
...
...
@@ -12,6 +12,7 @@ package cmd
// flags for any existing or new subcommands should be listed and organized
// here. Pulling flags using Viper should use the constants defined here.
// todo: fill this with all existing flags, replace hardcoded references with
//
// these constants. This makes renaming them easier, as well as having
// a consolidated place in code for these flags.
const
(
...
...
@@ -85,7 +86,7 @@ const (
legacyFlag
=
"legacy"
///////////////// Broadcast subcommand flags //////////////////////////////
broadcastNameFlag
=
"
n
ame"
broadcastNameFlag
=
"
channelN
ame"
broadcastRsaPubFlag
=
"rsaPub"
broadcastSaltFlag
=
"salt"
broadcastDescriptionFlag
=
"description"
...
...
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