cli icon indicating copy to clipboard operation
cli copied to clipboard

run-task `--wait` parameter is missing from cf8

Open mogul opened this issue 4 years ago • 5 comments

Please fill out the issue checklist below and provide ALL the requested information.

  • [x] I reviewed open and closed github issues that may be related to my problem.
  • [x] I tried updating to the latest version of the CF CLI to see if it fixed my problem.
  • [x] I attempted to run the command with CF_TRACE=1 to help debug the issue.
  • [x] I am reporting a bug that others will be able to reproduce.

Describe the bug and the command you saw an issue with Provide details on what you were trying to do (and why).

I was trying to run cf run-task [PARAMS] --wait to wait for the output before proceeding in a script.

What happened Incorrect Usage: unknown flag '--wait'

Expected behavior The command does not error out, and does not return until the task succeeds or fails.

Exact Steps To Reproduce Steps to reproduce the behavior; include the exact CLI commands and verbose output:

  1. brew install cloudfoundry/tap/cf-cli@7
  2. cf run-task --wait (errors out because of missing parameters, but no complaints about --wait)
  3. brew uninstall cloudfoundry/tap/cf-cli@7
  4. brew install cloudfoundry/tap/cf-cli@8
  5. cf run-task --wait (this is not sufficient parameters to actually run a task, but it demonstrates that --wait no longer works in cf8)
  6. See error about the --wait parameter

Provide more context

  • platform and shell details ( e.g. Mac OS X 10.11 iTerm)
    • This was in Ubuntu Linux, using the cf-cli 8 installed via Homebrew (which now supports Linux)
  • version of the CLI you are running
    • CF7: cf version 7.4.0+e55633fed.2021-11-15
    • CF8: cf version 8.0.0+e8d41cf8e.2021-09-16
  • version of the CC API Release you are on
    • N/A

See the Slack thread that precipitated this issue for additional info; note that the --help output and CLI docs site for CF8 will need updating when this fixed as well.

mogul avatar Dec 08 '21 23:12 mogul

This is causing problems between teams who share tooling that uses the cf CLI... People keep wanting to iterate the tooling to cf8 when certain tasks are only possible with cf7. Any chance it can be addressed soon?

mogul avatar Jan 14 '22 20:01 mogul

+1

Looks like a regression on cf8 especially because cf cli v8 added --wait for many commands: https://github.com/cloudfoundry/cli/releases/tag/v8.0.0

stephanme avatar Jan 19 '22 10:01 stephanme

I'd love to see this fixed in an 8.2.1... Please? At least ahead of 8.3.0?

mogul avatar Feb 13 '22 08:02 mogul

+1

ofilippov-vitech avatar May 30 '22 13:05 ofilippov-vitech

is this being picked up??

CN91 avatar Oct 18 '22 11:10 CN91