-
Notifications
You must be signed in to change notification settings - Fork 15
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: Token create & delete from CLI #39
Conversation
fe75025
to
136d5ba
Compare
Creating Token$ globe token create --name="Token" --expiry="2012-02-12" --project 8325e5a6-e419-45cb-99bd-3549880b1b26 or $ globe token create --name="Token" --expiry="2012-02-12"
Select projects to associate token with:
❯ ◯ pizza-store
◯ zomato
◯ blog-backend Terminal display when token created$ globe token create --name="Token" --expiry="2012-02-12"
Select projects to associate token with: [zomato, pizza-app]
✓ Here's your token:
ID: 5c65febd-0185-4dca-9032-a4e3bdc8be4b
Token: foo-bar.token-goes.here (1.8s) Terminal display when invalid expiry format$ globe token create --name="Token" --expiry="2012"
Invalid date format.
Date format should be 2012-02-27 or 2012-02-27 13:27:00 Deleting Token$ globe token delete --tokenId="5c65febd-0185-4dca-9032-a4e3bdc8be4b" Screen.Recording.2024-02-12.at.11.14.12.AM.mov |
15f81e9
to
5e5f602
Compare
This is no longer blocked, @lesnitsky we can proceed with review. |
packages/globe_cli/lib/src/commands/token/token_create_command.dart
Outdated
Show resolved
Hide resolved
packages/globe_cli/lib/src/commands/token/token_delete_command.dart
Outdated
Show resolved
Hide resolved
|
We'd also need a way to list tokens and see what projects a specific token has access to. Do you want to take care of it in this PR or separately? |
Yeah, we'll have it in here. |
Co-authored-by: Nabeel Parkar <[email protected]>
Co-authored-by: Nabeel Parkar <[email protected]>
Co-authored-by: Nabeel Parkar <[email protected]>
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
Resolves: https://github.com/invertase/dart_globe/issues/134