cloudfoundry / cli

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

Add `cf task <app> <id>` command #3308

Open Samze opened 4 days ago

Samze commented 4 days ago

What's the user value of this feature request? Related to the problem described in https://github.com/cloudfoundry/cli/issues/3274. If I want to run a cf task and get the status of that task, I must do, cf run-task, cf tasks. This can cause issues in larger environments where there are lots of tasks associated with an app.

Who is the functionality for? Application Developers

How often will this functionality be used by the user? As part of the core workflow for running and obtaining tasks.

Who else is affected by the change? New command, so not a breaking change.

Is your feature request related to a problem? Please describe. https://github.com/cloudfoundry/cli/issues/3274

Describe the solution you'd like A clear and concise description of what you want to happen.

Example output

cf task <my_app> 123

id: 123
name: my-task
start time:  Fri, 08 Nov 2024 16:23:17 UTC   
state:  SUCCEEDED
command: ls
result: null