Remove deprecated brew commands, update core commands
`brew services` and `brew server` were moved to homebrew-boneyard.
Diff
1diff --git a/plugins/brew/_brew b/plugins/brew/_brew
2index 40442a1d3bc5fdb258ff2f21ba1b4c3495abfe4c..d11aa245de88d64c81d6b7fc6d082b0498dbce93 100644
3--- a/plugins/brew/_brew
4+++ b/plugins/brew/_brew
5@@ -19,21 +19,18 @@ _brew_outdated_formulae() {
6 outdated_formulae=(`brew outdated`)
7 }
8 9-_brew_running_services() {
10- running_services=(`brew services list | awk '{print $1}'`)
11-}
12-
13 local -a _1st_arguments
14 _1st_arguments=(
15 'audit:check formulae for Homebrew coding style'
16- 'bundle:look for a Brewfile and run each line as a brew command'
17 'cat:display formula file for a formula'
18 'cleanup:uninstall unused and old versions of packages'
19 'commands:show a list of commands'
20 'create:create a new formula'
21- 'deps:list dependencies and dependants of a formula'
22+ 'deps:list dependencies of a formula'
23 'doctor:audits your installation for common issues'
24 'edit:edit a formula'
25+ 'fetch:download formula resources to the cache'
26+ 'gist-logs:generate a gist of the full build logs'
27 'home:visit the homepage of a formula or the brew project'
28 'info:information about a formula'
29 'install:install a formula'
30@@ -44,32 +41,24 @@ _1st_arguments=(
31 'missing:check all installed formuale for missing dependencies.'
32 'outdated:list formulae for which a newer version is available'
33 'pin:pin specified formulae'
34+ 'postinstall:perform post_install for a given formula'
35 'prune:remove dead links'
36 'remove:remove a formula'
37 'search:search for a formula (/regex/ or string)'
38- 'server:start a local web app that lets you browse formulae (requires Sinatra)'
39- 'services:small wrapper around `launchctl` for supported formulae'
40+ 'switch:switch linkage between installed versions of a formula'
41 'tap:tap a new formula repository from GitHub, or list existing taps'
42+ 'test-bot:test a formula and build a bottle'
43 'uninstall:uninstall a formula'
44 'unlink:unlink a formula'
45 'unpin:unpin specified formulae'
46 'untap:remove a tapped repository'
47- 'update:freshen up links'
48+ 'update:pull latest repository'
49 'upgrade:upgrade outdated formulae'
50 'uses:show formulae which depend on a formula'
51 )
5253-local -a _service_arguments
54-_service_arguments=(
55- 'cleanup:get rid of stale services and unused plists'
56- 'list:list all services managed by `brew services`'
57- 'restart:gracefully restart selected service'
58- 'start:start selected service'
59- 'stop:stop selected service'
60-)
61-
62 local expl
63-local -a formulae installed_formulae installed_taps outdated_formulae running_services
64+local -a formulae installed_formulae installed_taps outdated_formulae
6566 _arguments \
67 '(-v)-v[verbose]' \
68@@ -80,6 +69,7 @@ _arguments \
69 '(--version)--version[version information]' \
70 '(--prefix)--prefix[where brew lives on this system]' \
71 '(--cache)--cache[brew cache]' \
72+ '(--force)--force[brew force]' \
73 '*:: :->subcmds' && return 0
7475 if (( CURRENT == 1 )); then
76@@ -109,16 +99,6 @@ case "$words[1]" in
77 _arguments \
78 '(--macports)--macports[search the macports repository]' \
79 '(--fink)--fink[search the fink repository]' ;;
80- services)
81- if [[ -n "$words[2]" ]]; then
82- case "$words[2]" in
83- restart|start|stop)
84- _brew_running_services
85- _wanted running_services expl 'running services' compadd -a running_services ;;
86- esac
87- else
88- _describe -t commands "brew services subcommand" _service_arguments
89- fi ;;
90 untap)
91 _brew_installed_taps
92 _wanted installed_taps expl 'installed taps' compadd -a installed_taps ;;