-
Notifications
You must be signed in to change notification settings - Fork 352
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
Show both progress and JSON output on deployment command #618
Comments
Hey @kalinchernev thanks for the request. I'm not sure this would be possible. Mainly because all the |
Mixing types of data to the output is brittle, I agree.
Would it be better to have the listDeploys
<https://open-api.netlify.com/#operation/listSiteDeploys> as a param or
option to the deploy <https://cli.netlify.com/commands/deploy> so to get
info about the last deployment somehow and make use of it instead of the
JSON output.
…On Wed, 20 Nov 2019, 19:45 David Wells, ***@***.***> wrote:
Hey @kalinchernev <https://github.com/kalinchernev> thanks for the
request.
I'm not sure this would be possible. Mainly because all the stdout of the
CLI would be parse of the response. This would effectively break the json
if you are trying to parse it.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#618?email_source=notifications&email_token=AAOVTFAVH7WBVIW6S5ZMMHLQUWATNA5CNFSM4JPRXJY2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEETW3HY#issuecomment-556232095>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOVTFFIC7RCHH564YTO773QUWATNANCNFSM4JPRXJYQ>
.
|
Yeah what you could do it:
I'd recommend putting 2 commands together. We can't support terminal piping if we add non JSON output to the deployment command |
Of course, that's what I meant, 2 commands. Managed to get deploys info with
From the Thanks for pointing out to the |
- Do you want to request a feature or report a bug?
Feature
- What is the current behavior?
When running a deployment command with
--json
option in this way:netlify deploy --site 1234-5678 --message "foo" --json
There is no progress displayed on the output, only the end result.
- What is the desired behavior?
Be able to have something as:
netlify deploy --site 1234-5678 --message "foo" --json --verbose
Which will show progress of the deployment and will print out the json in the end.
- What is goal of the feature?
After moving the build processes out of netlify platform to save from build minutes, a convenient way to take deployment status is marking the
--json
flag. This output can be directred to a.json
file later feeded into another script to set preview status on github issues similarly to Netlify preview.However, asking for the
--json
output, deployment process' progress cannot be seen any more.Is there a way to achieve that without having a new feature? Checked this part of the code and can't quite imagine what options to pass.
The text was updated successfully, but these errors were encountered: