-
Notifications
You must be signed in to change notification settings - Fork 4
fix: remove short flag -j for json and return response to global json handler #465
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
Conversation
|
Git2Gus App is installed but the |
RodEsp
left a comment
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.
This all looks good to me but I'm not setup to run commands against an org with functions enabled so I can't QA. Trusting you guys are 😄
| if (!flags.json) { | ||
| cli.action.start(`Creating compute environment for org ID ${orgId}`); | ||
| } |
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.
Did you QA this?
I'm not sure that cli.action.start() has the same --json checks that this.log() does.
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.
Actions go out on stderr, so this shouldn't matter.
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.
"He says 99% sure."
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.
https://github.com/oclif/cli-ux/blob/21e8525497e6b4e9b4fa6cc1e2006bae2ff402eb/src/action/base.ts#L29
$ ./bin/dev logout functions --json 1>/dev/null
Logging out of Salesforce Functions... done
$ ./bin/dev logout functions --json 2>/dev/null
{
"status": 0,
"result": "Logged out",
"warnings": []
}
What does this PR do?
Remove -j from json flag and moves --json into global flags in help
Use this.warn to add warnings to json object
Return result from run for json handler & schema check
What issues does this PR fix or reference?
@W-00000000@