cloudfoundry / cli

The official command line client for Cloud Foundry
https://docs.cloudfoundry.org/cf-cli
Apache License 2.0
1.75k stars 928 forks source link

cf tasks should print the reason for FAILED tasks #2674

Closed saescha closed 1 month ago

saescha commented 11 months ago

Please provide details on the following items. Failure to do so may result in deletion of your feature request.

What's the user value of this feature request? Seeing the reason for a failure seems to be a handy feature. Using API calls to find something like "failure_reason": "failed to mount volume" is kind of inconvenient

Who is the functionality for? Users that use th cf task feature

How often will this functionality be used by the user? Whenever a task fails

Who else is affected by the change? noone

Is your feature request related to a problem? Please describe. Finding root cause of failing tasks

Describe the solution you'd like print the reason for failed tasks into the output of the cf tasks command

Describe alternatives you've considered skipping the usage of cf cli at all and only talk to the API that provides all information

Note: As of the GA of the v7 CLI, the v6 line is no longer under active development and will be updated only to patch CVEs or fix severe blocking defects with no workarounds.

saescha commented 11 months ago

I prepared a simple PR: https://github.com/cloudfoundry/cli/pull/2675

a-b commented 1 month ago

I'm resolving this issue now, as the related PR is closed due to inactivity. Please don't hesitate to reopen it if you have any questions or comments.