Skip to content

feat: create command to invite members#68

Merged
k3llymariee merged 10 commits into
mainfrom
kelly/sc-235704/create-command-to-invite-members
Mar 26, 2024
Merged

feat: create command to invite members#68
k3llymariee merged 10 commits into
mainfrom
kelly/sc-235704/create-command-to-invite-members

Conversation

@k3llymariee
Copy link
Copy Markdown
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> "}'

@shortcut-integration
Copy link
Copy Markdown

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
Comment thread cmd/members/members.go Outdated
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
Copy Markdown
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
Copy Markdown
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

Comment thread cmd/root.go
}

projectsCmd, err := projcmd.NewProjectsCmd(projectsClient)
flagsCmd, err := flagscmd.NewFlagsCmd(flagsClient)
Copy link
Copy Markdown
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

Comment thread cmd/members/members.go Outdated
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
Copy Markdown
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
@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