-
Notifications
You must be signed in to change notification settings - Fork 147
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(shorebird_cli): add shorebird collaborators delete
#510
Conversation
@@ -81,7 +81,7 @@ ${styleBold.wrap(lightGreen.wrap('🚀 Ready to add a new collaborator!'))} | |||
|
|||
final progress = logger.progress('Adding collaborator'); | |||
try { | |||
await client.createAppCollaborator(appId: appId, email: collaborator); | |||
await client.createCollaborator(appId: appId, email: collaborator); |
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.
renamed for consistency
printNeedsAuthInstructions(); | ||
return ExitCode.noUser.code; | ||
} | ||
|
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.
This might be redundant, but should we add a check that shorebird is initialized 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.
It shouldn't be necessary since we prompt if a shorebird.yaml isn't detected and an app-id is not supplied.
''', | ||
); | ||
|
||
final confirm = logger.confirm('Would you like to continue?'); |
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.
It might be good to include a sentence about the implications of removing a collaborator. "$email will no longer be able to publish releases or patches to this app".
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.
Sounds good happy to adjust the copy. I was planning to add some docs around this at docs.shorebird.dev as well.
}); | ||
|
||
test('returns ExitCode.usage when app id is missing.', () async { | ||
when(() => argResults['app-id']).thenReturn(null); |
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.
Are we testing fetching the appId from shorebird.yaml
?
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.
good catch fixed in #511
Description
shorebird collaborators delete
(closes Make it possible for two people to collaborate on an App #216)Type of Change