diff --git a/completers/brew_completer/cmd/cleanup.go b/completers/brew_completer/cmd/cleanup.go index ee5095700d..ce359cba91 100644 --- a/completers/brew_completer/cmd/cleanup.go +++ b/completers/brew_completer/cmd/cleanup.go @@ -18,7 +18,7 @@ func init() { cleanupCmd.Flags().Bool("debug", false, "Display any debugging information.") cleanupCmd.Flags().Bool("dry-run", false, "Show what would be removed, but do not actually remove anything.") cleanupCmd.Flags().Bool("help", false, "Show this message.") - cleanupCmd.Flags().Bool("prune", false, "Remove all cache files older than specified . If you want to remove everything, use `--prune=all`.") + cleanupCmd.Flags().String("prune", "", "Remove all cache files older than specified . If you want to remove everything, use `--prune=all`.") cleanupCmd.Flags().Bool("prune-prefix", false, "Only prune the symlinks and directories from the prefix and remove no other files.") cleanupCmd.Flags().Bool("quiet", false, "Make some output more quiet.") cleanupCmd.Flags().BoolS("s", "s", false, "Scrub the cache, including downloads for even the latest versions. Note that downloads for any installed formulae or casks will still not be deleted. If you want to delete those too: `rm -rf \"$(brew --cache)\"`") diff --git a/completers/brew_completer/cmd/info.go b/completers/brew_completer/cmd/info.go index be46ce819a..015cb04c3a 100644 --- a/completers/brew_completer/cmd/info.go +++ b/completers/brew_completer/cmd/info.go @@ -18,7 +18,7 @@ func init() { infoCmd.Flags().Bool("analytics", false, "List global Homebrew analytics data or, if specified, installation and build error data for (provided neither `HOMEBREW_NO_ANALYTICS` nor `HOMEBREW_NO_GITHUB_API` are set).") infoCmd.Flags().Bool("cask", false, "Treat all named arguments as casks.") - infoCmd.Flags().Bool("category", false, "Which type of analytics data to retrieve. The value for must be `install`, `install-on-request` or `build-error`; `cask-install` or `os-version` may be specified if is not. The default is `install`.") + infoCmd.Flags().String("category", "", "Which type of analytics data to retrieve. The value for must be `install`, `install-on-request` or `build-error`; `cask-install` or `os-version` may be specified if is not. The default is `install`.") infoCmd.Flags().Bool("days", false, "How many days of analytics data to retrieve. The value for must be `30`, `90` or `365`. The default is `30`.") infoCmd.Flags().Bool("debug", false, "Display any debugging information.") infoCmd.Flags().Bool("eval-all", false, "Evaluate all available formulae and casks, whether installed or not, to print their JSON. Implied if `HOMEBREW_EVAL_ALL` is set.") diff --git a/completers/brew_completer/cmd/install.go b/completers/brew_completer/cmd/install.go index 12d6cd3a17..12fc7fd97a 100644 --- a/completers/brew_completer/cmd/install.go +++ b/completers/brew_completer/cmd/install.go @@ -18,22 +18,22 @@ func init() { installCmd.Flags().Bool("HEAD", false, "If defines it, install the HEAD version, aka. main, trunk, unstable, master.") installCmd.Flags().Bool("adopt", false, "Adopt existing artifacts in the destination that are identical to those being installed. Cannot be combined with `--force`.") - installCmd.Flags().Bool("appdir", false, "Target location for Applications (default: `/Applications`).") - installCmd.Flags().Bool("audio-unit-plugindir", false, "Target location for Audio Unit Plugins (default: `~/Library/Audio/Plug-Ins/Components`).") + installCmd.Flags().String("appdir", "", "Target location for Applications (default: `/Applications`).") + installCmd.Flags().String("audio-unit-plugindir", "", "Target location for Audio Unit Plugins (default: `~/Library/Audio/Plug-Ins/Components`).") installCmd.Flags().Bool("binaries", false, "Disable/enable linking of helper executables (default: enabled).") installCmd.Flags().Bool("bottle-arch", false, "Optimise bottles for the specified architecture rather than the oldest architecture supported by the version of macOS the bottles are built on.") installCmd.Flags().Bool("build-bottle", false, "Prepare the formula for eventual bottling during installation, skipping any post-install steps.") installCmd.Flags().Bool("build-from-source", false, "Compile from source even if a bottle is provided. Dependencies will still be installed from bottles if they are available.") installCmd.Flags().Bool("cask", false, "Treat all named arguments as casks.") installCmd.Flags().Bool("cc", false, "Attempt to compile using the specified , which should be the name of the compiler's executable, e.g. `gcc-7` for GCC 7. In order to use LLVM's clang, specify `llvm_clang`. To use the Apple-provided clang, specify `clang`. This option will only accept compilers that are provided by Homebrew or bundled with macOS. Please do not file issues if you encounter errors while using this option.") - installCmd.Flags().Bool("colorpickerdir", false, "Target location for Color Pickers (default: `~/Library/ColorPickers`).") + installCmd.Flags().String("colorpickerdir", "", "Target location for Color Pickers (default: `~/Library/ColorPickers`).") installCmd.Flags().Bool("debug", false, "If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory.") installCmd.Flags().Bool("debug-symbols", false, "Generate debug symbols on build. Source will be retained in a cache directory.") - installCmd.Flags().Bool("dictionarydir", false, "Target location for Dictionaries (default: `~/Library/Dictionaries`).") + installCmd.Flags().String("dictionarydir", "", "Target location for Dictionaries (default: `~/Library/Dictionaries`).") installCmd.Flags().Bool("display-times", false, "Print install times for each package at the end of the run.") installCmd.Flags().Bool("dry-run", false, "Show what would be installed, but do not actually install anything.") installCmd.Flags().Bool("fetch-HEAD", false, "Fetch the upstream repository to detect if the HEAD installation of the formula is outdated. Otherwise, the repository's HEAD will only be checked for updates when a new stable or development version has been released.") - installCmd.Flags().Bool("fontdir", false, "Target location for Fonts (default: `~/Library/Fonts`).") + installCmd.Flags().String("fontdir", "", "Target location for Fonts (default: `~/Library/Fonts`).") installCmd.Flags().Bool("force", false, "Install formulae without checking for previously installed keg-only or non-migrated versions. When installing casks, overwrite existing files (binaries and symlinks are excluded, unless originally from the same cask).") installCmd.Flags().Bool("force-bottle", false, "Install from a bottle if it exists for the current or newest version of macOS, even if it would not normally be used for installation.") installCmd.Flags().Bool("formula", false, "Treat all named arguments as formulae.") @@ -41,29 +41,29 @@ func init() { installCmd.Flags().Bool("help", false, "Show this message.") installCmd.Flags().Bool("ignore-dependencies", false, "An unsupported Homebrew development option to skip installing any dependencies of any kind. If the dependencies are not already present, the formula will have issues. If you're not developing Homebrew, consider adjusting your PATH rather than using this option.") installCmd.Flags().Bool("include-test", false, "Install testing dependencies required to run `brew test` .") - installCmd.Flags().Bool("input-methoddir", false, "Target location for Input Methods (default: `~/Library/Input Methods`).") + installCmd.Flags().String("input-methoddir", "", "Target location for Input Methods (default: `~/Library/Input Methods`).") installCmd.Flags().Bool("interactive", false, "Download and patch , then open a shell. This allows the user to run `./configure --help` and otherwise determine how to turn the software package into a Homebrew package.") - installCmd.Flags().Bool("internet-plugindir", false, "Target location for Internet Plugins (default: `~/Library/Internet Plug-Ins`).") + installCmd.Flags().String("internet-plugindir", "", "Target location for Internet Plugins (default: `~/Library/Internet Plug-Ins`).") installCmd.Flags().Bool("keep-tmp", false, "Retain the temporary files created during installation.") - installCmd.Flags().Bool("keyboard-layoutdir", false, "Target location for Keyboard Layouts (default: `/Library/Keyboard Layouts`).") + installCmd.Flags().String("keyboard-layoutdir", "", "Target location for Keyboard Layouts (default: `/Library/Keyboard Layouts`).") installCmd.Flags().Bool("language", false, "Comma-separated list of language codes to prefer for cask installation. The first matching language is used, otherwise it reverts to the cask's default language. The default value is the language of your system.") - installCmd.Flags().Bool("mdimporterdir", false, "Target location for Spotlight Plugins (default: `~/Library/Spotlight`).") + installCmd.Flags().String("mdimporterdir", "", "Target location for Spotlight Plugins (default: `~/Library/Spotlight`).") installCmd.Flags().Bool("no-binaries", false, "Disable/enable linking of helper executables (default: enabled).") installCmd.Flags().Bool("no-quarantine", false, "Disable/enable quarantining of downloads (default: enabled).") installCmd.Flags().Bool("only-dependencies", false, "Install the dependencies with specified options but do not install the formula itself.") installCmd.Flags().Bool("overwrite", false, "Delete files that already exist in the prefix while linking.") - installCmd.Flags().Bool("prefpanedir", false, "Target location for Preference Panes (default: `~/Library/PreferencePanes`).") - installCmd.Flags().Bool("qlplugindir", false, "Target location for Quick Look Plugins (default: `~/Library/QuickLook`).") + installCmd.Flags().String("prefpanedir", "", "Target location for Preference Panes (default: `~/Library/PreferencePanes`).") + installCmd.Flags().String("qlplugindir", "", "Target location for Quick Look Plugins (default: `~/Library/QuickLook`).") installCmd.Flags().Bool("quarantine", false, "Disable/enable quarantining of downloads (default: enabled).") installCmd.Flags().Bool("quiet", false, "Make some output more quiet.") installCmd.Flags().Bool("require-sha", false, "Require all casks to have a checksum.") - installCmd.Flags().Bool("screen-saverdir", false, "Target location for Screen Savers (default: `~/Library/Screen Savers`).") - installCmd.Flags().Bool("servicedir", false, "Target location for Services (default: `~/Library/Services`).") + installCmd.Flags().String("screen-saverdir", "", "Target location for Screen Savers (default: `~/Library/Screen Savers`).") + installCmd.Flags().String("servicedir", "", "Target location for Services (default: `~/Library/Services`).") installCmd.Flags().Bool("skip-cask-deps", false, "Skip installing cask dependencies.") installCmd.Flags().Bool("skip-post-install", false, "Install but skip any post-install steps.") installCmd.Flags().Bool("verbose", false, "Print the verification and post-install steps.") - installCmd.Flags().Bool("vst-plugindir", false, "Target location for VST Plugins (default: `~/Library/Audio/Plug-Ins/VST`).") - installCmd.Flags().Bool("vst3-plugindir", false, "Target location for VST3 Plugins (default: `~/Library/Audio/Plug-Ins/VST3`).") + installCmd.Flags().String("vst-plugindir", "", "Target location for VST Plugins (default: `~/Library/Audio/Plug-Ins/VST`).") + installCmd.Flags().String("vst3-plugindir", "", "Target location for VST3 Plugins (default: `~/Library/Audio/Plug-Ins/VST3`).") installCmd.Flags().Bool("zap", false, "For use with `brew reinstall --cask`. Remove all files associated with a cask. *May remove files which are shared between applications.*") rootCmd.AddCommand(installCmd) diff --git a/completers/brew_completer/cmd/upgrade.go b/completers/brew_completer/cmd/upgrade.go index af57ab8e29..064b33440f 100644 --- a/completers/brew_completer/cmd/upgrade.go +++ b/completers/brew_completer/cmd/upgrade.go @@ -16,19 +16,19 @@ var upgradeCmd = &cobra.Command{ func init() { carapace.Gen(upgradeCmd).Standalone() - upgradeCmd.Flags().Bool("appdir", false, "Target location for Applications (default: `/Applications`).") - upgradeCmd.Flags().Bool("audio-unit-plugindir", false, "Target location for Audio Unit Plugins (default: `~/Library/Audio/Plug-Ins/Components`).") + upgradeCmd.Flags().String("appdir", "", "Target location for Applications (default: `/Applications`).") + upgradeCmd.Flags().String("audio-unit-plugindir", "", "Target location for Audio Unit Plugins (default: `~/Library/Audio/Plug-Ins/Components`).") upgradeCmd.Flags().Bool("binaries", false, "Disable/enable linking of helper executables (default: enabled).") upgradeCmd.Flags().Bool("build-from-source", false, "Compile from source even if a bottle is available.") upgradeCmd.Flags().Bool("cask", false, "Treat all named arguments as casks. If no named arguments are specified, upgrade only outdated casks.") - upgradeCmd.Flags().Bool("colorpickerdir", false, "Target location for Color Pickers (default: `~/Library/ColorPickers`).") + upgradeCmd.Flags().String("colorpickerdir", "", "Target location for Color Pickers (default: `~/Library/ColorPickers`).") upgradeCmd.Flags().Bool("debug", false, "If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory.") upgradeCmd.Flags().Bool("debug-symbols", false, "Generate debug symbols on build. Source will be retained in a cache directory.") - upgradeCmd.Flags().Bool("dictionarydir", false, "Target location for Dictionaries (default: `~/Library/Dictionaries`).") + upgradeCmd.Flags().String("dictionarydir", "", "Target location for Dictionaries (default: `~/Library/Dictionaries`).") upgradeCmd.Flags().Bool("display-times", false, "Print install times for each package at the end of the run.") upgradeCmd.Flags().Bool("dry-run", false, "Show what would be upgraded, but do not actually upgrade anything.") upgradeCmd.Flags().Bool("fetch-HEAD", false, "Fetch the upstream repository to detect if the HEAD installation of the formula is outdated. Otherwise, the repository's HEAD will only be checked for updates when a new stable or development version has been released.") - upgradeCmd.Flags().Bool("fontdir", false, "Target location for Fonts (default: `~/Library/Fonts`).") + upgradeCmd.Flags().String("fontdir", "", "Target location for Fonts (default: `~/Library/Fonts`).") upgradeCmd.Flags().Bool("force", false, "Install formulae without checking for previously installed keg-only or non-migrated versions. When installing casks, overwrite existing files (binaries and symlinks are excluded, unless originally from the same cask).") upgradeCmd.Flags().Bool("force-bottle", false, "Install from a bottle if it exists for the current or newest version of macOS, even if it would not normally be used for installation.") upgradeCmd.Flags().Bool("formula", false, "Treat all named arguments as formulae. If no named arguments are specified, upgrade only outdated formulae.") @@ -36,26 +36,26 @@ func init() { upgradeCmd.Flags().Bool("greedy-auto-updates", false, "Also include casks with `auto_updates true`.") upgradeCmd.Flags().Bool("greedy-latest", false, "Also include casks with `version :latest`.") upgradeCmd.Flags().Bool("help", false, "Show this message.") - upgradeCmd.Flags().Bool("input-methoddir", false, "Target location for Input Methods (default: `~/Library/Input Methods`).") + upgradeCmd.Flags().String("input-methoddir", "", "Target location for Input Methods (default: `~/Library/Input Methods`).") upgradeCmd.Flags().Bool("interactive", false, "Download and patch , then open a shell. This allows the user to run `./configure --help` and otherwise determine how to turn the software package into a Homebrew package.") - upgradeCmd.Flags().Bool("internet-plugindir", false, "Target location for Internet Plugins (default: `~/Library/Internet Plug-Ins`).") + upgradeCmd.Flags().String("internet-plugindir", "", "Target location for Internet Plugins (default: `~/Library/Internet Plug-Ins`).") upgradeCmd.Flags().Bool("keep-tmp", false, "Retain the temporary files created during installation.") upgradeCmd.Flags().Bool("keyboard-layoutdir", false, "Target location for Keyboard Layouts (default: `/Library/Keyboard Layouts`).") upgradeCmd.Flags().Bool("language", false, "Comma-separated list of language codes to prefer for cask installation. The first matching language is used, otherwise it reverts to the cask's default language. The default value is the language of your system.") - upgradeCmd.Flags().Bool("mdimporterdir", false, "Target location for Spotlight Plugins (default: `~/Library/Spotlight`).") + upgradeCmd.Flags().String("mdimporterdir", "", "Target location for Spotlight Plugins (default: `~/Library/Spotlight`).") upgradeCmd.Flags().Bool("no-binaries", false, "Disable/enable linking of helper executables (default: enabled).") upgradeCmd.Flags().Bool("no-quarantine", false, "Disable/enable quarantining of downloads (default: enabled).") - upgradeCmd.Flags().Bool("prefpanedir", false, "Target location for Preference Panes (default: `~/Library/PreferencePanes`).") - upgradeCmd.Flags().Bool("qlplugindir", false, "Target location for Quick Look Plugins (default: `~/Library/QuickLook`).") + upgradeCmd.Flags().String("prefpanedir", "", "Target location for Preference Panes (default: `~/Library/PreferencePanes`).") + upgradeCmd.Flags().String("qlplugindir", "", "Target location for Quick Look Plugins (default: `~/Library/QuickLook`).") upgradeCmd.Flags().Bool("quarantine", false, "Disable/enable quarantining of downloads (default: enabled).") upgradeCmd.Flags().Bool("quiet", false, "Make some output more quiet.") upgradeCmd.Flags().Bool("require-sha", false, "Require all casks to have a checksum.") - upgradeCmd.Flags().Bool("screen-saverdir", false, "Target location for Screen Savers (default: `~/Library/Screen Savers`).") - upgradeCmd.Flags().Bool("servicedir", false, "Target location for Services (default: `~/Library/Services`).") + upgradeCmd.Flags().String("screen-saverdir", "", "Target location for Screen Savers (default: `~/Library/Screen Savers`).") + upgradeCmd.Flags().String("servicedir", "", "Target location for Services (default: `~/Library/Services`).") upgradeCmd.Flags().Bool("skip-cask-deps", false, "Skip installing cask dependencies.") upgradeCmd.Flags().Bool("verbose", false, "Print the verification and post-install steps.") - upgradeCmd.Flags().Bool("vst-plugindir", false, "Target location for VST Plugins (default: `~/Library/Audio/Plug-Ins/VST`).") - upgradeCmd.Flags().Bool("vst3-plugindir", false, "Target location for VST3 Plugins (default: `~/Library/Audio/Plug-Ins/VST3`).") + upgradeCmd.Flags().String("vst-plugindir", "", "Target location for VST Plugins (default: `~/Library/Audio/Plug-Ins/VST`).") + upgradeCmd.Flags().String("vst3-plugindir", "", "Target location for VST3 Plugins (default: `~/Library/Audio/Plug-Ins/VST3`).") rootCmd.AddCommand(upgradeCmd) carapace.Gen(upgradeCmd).FlagCompletion(carapace.ActionMap{