remove deprecated cask command from man page

This commit is contained in:
hyuraku 2020-10-26 21:48:38 +09:00 committed by Markus Reiter
parent 9f458142b7
commit faf7aab6dd
3 changed files with 1 additions and 63 deletions

View File

@ -69,6 +69,7 @@ module Cask
command_lines = Cmd.command_classes command_lines = Cmd.command_classes
.select(&:visible?) .select(&:visible?)
.reject { |command| DEPRECATED_COMMANDS.key?(command) }
.map do |klass| .map do |klass|
" - #{"`#{klass.command_name}`".ljust(max_command_length + 2)} #{klass.short_description}\n" " - #{"`#{klass.command_name}`".ljust(max_command_length + 2)} #{klass.short_description}\n"
end end

View File

@ -71,9 +71,6 @@ Homebrew Cask provides a friendly CLI workflow for the administration of macOS a
Commands: Commands:
- `--cache`
<br>Display the file used to cache a *`cask`*.
- `audit` - `audit`
<br>Check *`cask`* for Homebrew coding style violations. <br>Check *`cask`* for Homebrew coding style violations.
@ -83,9 +80,6 @@ Commands:
- `create` - `create`
<br>Creates the given *`cask`* and opens it in an editor. <br>Creates the given *`cask`* and opens it in an editor.
- `doctor`
<br>Checks for configuration issues.
- `edit` - `edit`
<br>Open the given *`cask`* for editing. <br>Open the given *`cask`* for editing.
@ -95,33 +89,18 @@ Commands:
- `help` - `help`
<br>Print help for `cask` commands. <br>Print help for `cask` commands.
- `home`
<br>Opens the homepage of the given *`cask`*.
- `info` - `info`
<br>Displays information about the given *`cask`*. <br>Displays information about the given *`cask`*.
- `install` - `install`
<br>Installs the given *`cask`*. <br>Installs the given *`cask`*.
- `list`
<br>Lists installed casks or the casks provided in the arguments.
- `outdated`
<br>List the outdated installed casks.
- `reinstall`
<br>Reinstalls the given *`cask`*.
- `style` - `style`
<br>Checks style of the given *`cask`* using RuboCop. <br>Checks style of the given *`cask`* using RuboCop.
- `uninstall` - `uninstall`
<br>Uninstalls the given *`cask`*. <br>Uninstalls the given *`cask`*.
- `upgrade`
<br>Upgrades all outdated casks or the specified casks.
- `zap` - `zap`
<br>Zaps all files associated with the given *`cask`*. <br>Zaps all files associated with the given *`cask`*.

View File

@ -67,12 +67,6 @@ Homebrew Cask provides a friendly CLI workflow for the administration of macOS a
Commands: Commands:
. .
.TP .TP
\fB\-\-cache\fR
.
.br
Display the file used to cache a \fIcask\fR\.
.
.TP
\fBaudit\fR \fBaudit\fR
. .
.br .br
@ -91,12 +85,6 @@ Dump raw source of a \fIcask\fR to the standard output\.
Creates the given \fIcask\fR and opens it in an editor\. Creates the given \fIcask\fR and opens it in an editor\.
. .
.TP .TP
\fBdoctor\fR
.
.br
Checks for configuration issues\.
.
.TP
\fBedit\fR \fBedit\fR
. .
.br .br
@ -115,12 +103,6 @@ Downloads remote application files to local cache\.
Print help for \fBcask\fR commands\. Print help for \fBcask\fR commands\.
. .
.TP .TP
\fBhome\fR
.
.br
Opens the homepage of the given \fIcask\fR\.
.
.TP
\fBinfo\fR \fBinfo\fR
. .
.br .br
@ -133,24 +115,6 @@ Displays information about the given \fIcask\fR\.
Installs the given \fIcask\fR\. Installs the given \fIcask\fR\.
. .
.TP .TP
\fBlist\fR
.
.br
Lists installed casks or the casks provided in the arguments\.
.
.TP
\fBoutdated\fR
.
.br
List the outdated installed casks\.
.
.TP
\fBreinstall\fR
.
.br
Reinstalls the given \fIcask\fR\.
.
.TP
\fBstyle\fR \fBstyle\fR
. .
.br .br
@ -163,12 +127,6 @@ Checks style of the given \fIcask\fR using RuboCop\.
Uninstalls the given \fIcask\fR\. Uninstalls the given \fIcask\fR\.
. .
.TP .TP
\fBupgrade\fR
.
.br
Upgrades all outdated casks or the specified casks\.
.
.TP
\fBzap\fR \fBzap\fR
. .
.br .br