-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement gRPC Team Add-User #193
Conversation
cmd/client/cmd/team.go
Outdated
@@ -140,3 +124,27 @@ func createTeam(cmd *cobra.Command, args []string) { | |||
} | |||
fmt.Println("Team created with success") | |||
} | |||
|
|||
func teamAddUser(cmd *cobra.Command, args []string) { | |||
team, _ := cmd.Flags().GetString("team") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we test for errors here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
copy/past
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
pkg/server/team/handlers_test.go
Outdated
return | ||
} | ||
} | ||
t.Errorf("AddUser dont add user for a team") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe AddUser didn't add user in team
cmd/client/cmd/team.go
Outdated
conn, err := connection.New(cfgFile) | ||
if err != nil { | ||
fmt.Fprintln(os.Stderr, "Erro connecting to server:", err) | ||
return |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo Erro -> Error
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔁
7397076
to
dcea361
Compare
…e implementation
dcea361
to
8e0d8c5
Compare
This change is