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(shorebird_cli): expose user #224

Merged
merged 5 commits into from
Apr 4, 2023
Merged

feat(shorebird_cli): expose user #224

merged 5 commits into from
Apr 4, 2023

Conversation

felangel
Copy link
Contributor

@felangel felangel commented Apr 4, 2023

Description

  • feat(shorebird_cli): expose user

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore

@felangel felangel added the enhancement New feature or request label Apr 4, 2023
@felangel felangel requested review from eseidel and bryanoltman April 4, 2023 15:29
@felangel felangel self-assigned this Apr 4, 2023
@@ -75,7 +78,11 @@ class Auth {

AccessCredentials? _credentials;

AccessCredentials? get credentials => _credentials;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The user is exposed instead of credentials

Copy link
Contributor

@bryanoltman bryanoltman left a comment

Choose a reason for hiding this comment

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

Love it

@@ -30,7 +29,7 @@ class LoginCommand extends ShorebirdCommand {
await auth.login(prompt);
logger.info('''

🎉 ${lightGreen.wrap('Welcome to Shorebird! You are now logged in.')}
🎉 ${lightGreen.wrap('Welcome to Shorebird! You are now logged in as <${auth.user!.email}>.')}
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice! Making a TODO to add this to doctor.

packages/shorebird_cli/lib/src/auth/auth.dart Outdated Show resolved Hide resolved
@felangel felangel merged commit 8a2ec10 into main Apr 4, 2023
@felangel felangel deleted the feat/shorebird-cli-user branch April 4, 2023 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants