Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Display account ID's when possible #1786

Merged
merged 5 commits into from
Mar 4, 2021
Merged

Display account ID's when possible #1786

merged 5 commits into from
Mar 4, 2021

Conversation

caass
Copy link
Contributor

@caass caass commented Mar 1, 2021

Previously, users had to log in to their dash to view their account IDs. This PR extracts some of the code used in whoami to log their account IDs to the terminal, instead. If for some reason that doesn't work, it'll fall back to telling them where to go to find them on the dash.

@caass caass requested a review from xortive March 1, 2021 20:46
@caass caass requested a review from a team as a code owner March 1, 2021 20:46
Cass Fridkin added 2 commits March 1, 2021 15:53
Comment on lines +22 to +23
display_account_id_maybe();
failure::bail!("field `account_id` is required to deploy to workers.dev")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
display_account_id_maybe();
failure::bail!("field `account_id` is required to deploy to workers.dev")
failure::bail!("field `account_id` is required to deploy to workers.dev")
display_account_id_maybe();

I think this will give nicer output maybe?

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 issue is that bailing just instantly returns, but i agree. i'll see if there's another way

@xortive
Copy link
Contributor

xortive commented Mar 1, 2021

So happy to finally see this happen :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants