Skip to content

run-task --wait parameter is missing from cf8 #2238

@mogul

Description

@mogul

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

  • I reviewed open and closed github issues that may be related to my problem.
  • I tried updating to the latest version of the CF CLI to see if it fixed my problem.
  • I attempted to run the command with CF_TRACE=1 to help debug the issue.
  • 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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions