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(cli) port login command #59

Merged
merged 3 commits into from
Aug 30, 2019
Merged

feat(cli) port login command #59

merged 3 commits into from
Aug 30, 2019

Conversation

xavdid
Copy link
Contributor

@xavdid xavdid commented Aug 30, 2019

Port the login command and fix some bugs.

Worth noting that this doesn't include the saml changes from zapier/zapier-platform-cli#420. It could, but we're still not positive on the url for that dashboard, so i'm going to hold off. Should be a fast enough follow once this is in though.

I'm not sure how we can test this or if it's easy to mock stdin.

@xavdid xavdid requested a review from eliangcs as a code owner August 30, 2019 02:36
Copy link
Member

@eliangcs eliangcs left a comment

Choose a reason for hiding this comment

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

I did some sanity tests and it looks good!

this.log(
`\n\nNow you'll enter your Zapier password.\nIf you log into Zapier via the ${colors.green(
'log in with Google button'
)}, you may not have a Zapier password.\nIf that's the case, go to https://zapier.com/app/login/forgot and create one.\n\n`
Copy link
Member

Choose a reason for hiding this comment

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

💯


describe('BaseCommand', () => {
describe('log', () => {
beforeEach(() => {
// stdout.print = true;
Copy link
Member

Choose a reason for hiding this comment

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

Does this commented line of code have any purpose? I suggest removing if not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's helpful for testing, though it probably doesn't need to be included. Will pull!

@xavdid xavdid merged commit 38dcc79 into master Aug 30, 2019
@xavdid xavdid deleted the login-logout-commands branch August 30, 2019 19:50
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.

2 participants