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

feat: create command to invite members #68

Merged
merged 10 commits into from
Mar 26, 2024

Conversation

k3llymariee
Copy link
Contributor

@k3llymariee k3llymariee commented Mar 26, 2024

Adds a command to invite a new member. Can be run with:

go run  main.go members create -t <API_TOKEN> --data '{"email": "<EMAIL> ", "role": "<BUILT_IN_ROLE> "}'

Copy link

This pull request has been linked to Shortcut Story #235704: create command to invite members.

@k3llymariee k3llymariee marked this pull request as ready for review March 26, 2024 16:04
Use: "members",
Short: "Make requests (create/invite) on members",
Long: "Make requests (create/invite) on members",
Run: func(cmd *cobra.Command, args []string) {
Copy link
Contributor

Choose a reason for hiding this comment

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

You can get rid of this.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ooops yes i can, leftover from running cobra-cli add

@@ -56,24 +59,31 @@ func NewRootCommand(flagsClient flags.Client, projectsClient projects.Client) (*
return nil, err
}

projectsCmd, err := projcmd.NewProjectsCmd(projectsClient)
flagsCmd, err := flagscmd.NewFlagsCmd(flagsClient)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

swapped to alphabetize/match the order in which we add commands

Use: "members",
Short: "Make requests (create/invite) on members",
Long: "Make requests (create/invite) on members",
Run: func(cmd *cobra.Command, args []string) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

ooops yes i can, leftover from running cobra-cli add

@k3llymariee k3llymariee merged commit e1a2ca5 into main Mar 26, 2024
2 checks passed
@k3llymariee k3llymariee deleted the kelly/sc-235704/create-command-to-invite-members branch March 26, 2024 16:55
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