-
Notifications
You must be signed in to change notification settings - Fork 5
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
[PLATFORM-633] Migrate commands left to builder #140
Conversation
It also supports lowercase methods. Fixes https://meroxa.atlassian.net/browse/PLATFORM-546
45b3641
to
5dc7174
Compare
5dc7174
to
6f285b0
Compare
71b572c
to
757274a
Compare
ec8faf2
to
2a2d953
Compare
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.
I've found a bug - when logging in on a fresh machine (no auth.meroxa.io cookie) the auth0 login page opens but after logging in the redirect page doesn't open anything, since the server is not running anymore, the CLI process is already stopped at that point.
a.logger.Infof(ctx, "< %s %s\n", k, strings.Join(v, " ")) | ||
} | ||
|
||
a.logger.Info(ctx, prettyJSON.String()) |
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.
Should we also add a JSON output to enable the --json
flag? I imagine it would be quite useful to have in this command. Although the JSON logger right now marshals the output, while in this case we would need to just log the response body as it is, without running it through the JSON marshaler.
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.
@lovromazgon thought about that, but I wondered if that could be useful. Glad you thought the same, so I'll make that change.
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.
@lovromazgon let me know what you think d8511c9
Co-authored-by: Lovro Mažgon <[email protected]>
Co-authored-by: Lovro Mažgon <[email protected]>
Co-authored-by: Lovro Mažgon <[email protected]>
@lovromazgon made some changes. Let me know what you think now. Thank you! |
c303a5f
to
b55efd6
Compare
Description of change
These commands do conform the new design, but to consolidate an only way to write commands, these are also being migrated to thew new builder.
While I'm at it, I'll fix some of the things there were in the backlog and will add tests.
Fixes https://meroxa.atlassian.net/browse/PLATFORM-546
Fixes https://meroxa.atlassian.net/browse/PLATFORM-633
Fixes https://meroxa.atlassian.net/browse/PLATFORM-461 (once we're in V2)
Commands migrated
Type of change
How was this tested?
Demo
Before this pull-request
After this pull-request