Skip to content

Deprecated commands used in completions,  #8709

@Amorymeltzer

Description

@Amorymeltzer

Bug report

Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL the requested information. If you repeatedly fail to use the issue template, we will block you from ever submitting issues to Homebrew again.

  • ran brew update and can still reproduce the problem?
  • ran brew doctor, fixed all issues and can still reproduce the problem?
  • ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)

Use bash tab completion to show outdated casks.

What happened (include command output)

Command output

> brew cask outdated <TAB>

> brew cask outdated Warning: Calling brew cask list is deprecated! Use brew list --cask instead.

Some cask sub commands have been incorporated into brew and are deprecated (see e.g. #8390 for a helpful list), but they persist in a few places, in particular in the docs (#8629, see also Homebrew/homebrew-cask#88682). The completion scripts also use some of these deprecated commands. Beyond fixing notable offenders from cask (like list and outdated), brew sub commands (like list and outdated) also need to learn about the --cask flag.

I suppose there could be a discussion about whether to remove deprecated commands while deprecated but present/functioning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    outdatedPR was locked due to agestaleNo recent activity

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions