Skip to content
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

Merged
merged 12 commits into from
May 22, 2017
Merged

Implement gRPC Team Add-User #193

merged 12 commits into from
May 22, 2017

Conversation

drgarcia1986
Copy link
Contributor

@drgarcia1986 drgarcia1986 commented May 18, 2017

  • Implement team add-user
  • Remove go-swagger implementation
  • Clean up
  • love ❤️

This change is Reviewable

@@ -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")
Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy/past

Copy link
Contributor

@aguerra aguerra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

return
}
}
t.Errorf("AddUser dont add user for a team")
Copy link
Contributor

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

conn, err := connection.New(cfgFile)
if err != nil {
fmt.Fprintln(os.Stderr, "Erro connecting to server:", err)
return
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo Erro -> Error

Copy link
Contributor

@aguerra aguerra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔁

@drgarcia1986 drgarcia1986 merged commit 92c53bd into master May 22, 2017
@drgarcia1986 drgarcia1986 deleted the dg-team_add_user-grpc branch May 22, 2017 14:15
@drgarcia1986 drgarcia1986 mentioned this pull request Jun 2, 2017
26 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants