Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/Homebrew/brew.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Apr 20, 2016
    • Martin Afanasjew's avatar
      exceptions: add reason to 'UsageError' exception · d9363a15
      Martin Afanasjew authored
      Use the `reason` attribute to be able to handle `UsageError` subclasses
      more uniformly and simplify logic in `brew.rb` to handle them together.
      d9363a15
    • Martin Afanasjew's avatar
      help: show command-specific help for invalid usage · cf3486f9
      Martin Afanasjew authored
      Instead of always printing the generic help text, print command-specific
      help if it is available and a command raised the `UsageError` exception.
      Put the error message underneath the help text (was above) to avoid that
      it scrolls off the screen.
      
      Thereby fix a regression where handling the invalid usage would fail to
      access `ARGV.usage` removed in c6536066.
      cf3486f9
    • Martin Afanasjew's avatar
      help: refactor (again) and fix code style issues · 557ad956
      Martin Afanasjew authored
      Turns out making `empty_argv` a boolean argument for `Homebrew.help` was
      not the best idea and having command-to-path mapping and help extraction
      in a single method is not flexible enough.
      
      Also only complain about missing help text when `HOMEBREW_DEVELOPER=1`
      and otherwise just print the generic help text.
      557ad956
    • Martin Afanasjew's avatar
      brew.rb: fix Ruby syntax warning · 98000134
      Martin Afanasjew authored
      Library/brew.rb:108: warning: `*' interpreted as argument prefix
      98000134
  2. Apr 18, 2016
  3. Apr 11, 2016
    • Martin Afanasjew's avatar
      brew.rb: adjust behavior for undocumented commands · 0382134c
      Martin Afanasjew authored
      Don't exit with a non-zero status code just because an internal command
      happens to be undocumented. Also print the generic help in these cases
      to provide some help (including a reference to the man page).
      0382134c
    • Max Nordlund's avatar
      Implement the `brew help` command · b21f699f
      Max Nordlund authored
      This is also used by `brew <cmd> --help`. The basic idea is to have the
      documentation as a top level comment in each command file. To find these
      comments, they have to be like this `#:`.
      
      This is also used by the `brew man` command to keep the documentation
      DRY, and for that there are now a header and footer for the man page.
      b21f699f
  4. Apr 04, 2016
  5. Apr 02, 2016
  6. Mar 21, 2016
    • Xu Cheng's avatar
      add HOMEBREW_ENV_PATH internal variable · ce7b32ce
      Xu Cheng authored
      `Library/ENV` like `Library/Homebrew` is part of Homebrew basecode. It
      should be able to be accessed during the `brew tests`.
      
      By adding HOMEBREW_ENV_PATH variable, we allow test suit to locate these
      codes.
      ce7b32ce
  7. Feb 15, 2016
  8. Feb 06, 2016
  9. Feb 02, 2016
  10. Jan 27, 2016
  11. Jan 26, 2016
    • Martin Afanasjew's avatar
      brew.rb: don't re-export for external commands · 29d80643
      Martin Afanasjew authored
      `bin/brew` already sets up a bunch of environment variables. There's no
      need to re-export them for external commands. (`HOMEBREW_LIBRARY_PATH`
      and `HOMEBREW_CACHE` continue to be determined later in the Ruby code.)
      29d80643
  12. Jan 20, 2016
  13. Jan 18, 2016
  14. Jan 14, 2016
    • Xu Cheng's avatar
      brew: tap missing tap as normal user · c4dcf8b7
      Xu Cheng authored
      
      Before this, `sudo brew cask` will auto install Homebrew cask as root
      user. This will cause permission problem for files in `Tap` directory.
      
      Therefore, let's check process uid and switch to normal user for tap.
      As result, `sudo brew cask` will work as the same before, except tap
      files will have the correct permission attributes.
      
      Closes Homebrew/homebrew#48059.
      
      Signed-off-by: default avatarXu Cheng <xucheng@me.com>
      c4dcf8b7
  15. Dec 21, 2015
  16. Dec 10, 2015
  17. Dec 08, 2015
  18. Nov 09, 2015
  19. Oct 19, 2015
  20. Oct 16, 2015
    • Dominyk Tiller's avatar
      brew: check xcode license status · 5f86a60e
      Dominyk Tiller authored
      
      The xcrun code is stolen right out of the INSTALL script.
      
      Check for user agreement of the Xcode license before permitting any other brew usage to continue.
      This prevents the situation where people are instructed to "please re-run as root via sudo" on brew commands.
      The check can only fail when Xcode is installed & the active developer dir.
      
      Closes Homebrew/homebrew#44974.
      
      Signed-off-by: default avatarDominyk Tiller <dominyktiller@gmail.com>
      5f86a60e
  21. Sep 12, 2015
  22. Aug 25, 2015
  23. Aug 03, 2015
  24. Jul 29, 2015
  25. Jul 03, 2015
  26. Jun 20, 2015
  27. Jun 17, 2015
  28. Jun 15, 2015
  29. May 15, 2015
Loading