Xu Cheng
79345592a9
man: auto detect maintainers list
2016-06-14 21:22:07 +08:00
Martin Afanasjew
d29d58b3fb
man: put option-style commands after regular ones
2016-04-20 13:45:26 +02:00
Xu Cheng
0949a6955a
man: fix Ruby syntax warning
...
Library/Homebrew/cmd/man.rb:44: warning: assigned but unused variable - commands
Closes #116 .
Signed-off-by: Xu Cheng <xucheng@me.com>
2016-04-19 22:44:38 +08:00
Xu Cheng
9b79f45e94
Revert "man: fix Ruby syntax warning"
...
This reverts commit 2caf7b76bb3e09ffabf8c56d3934ba8190673fdc.
2016-04-19 15:25:44 +08:00
Xu Cheng
2caf7b76bb
man: fix Ruby syntax warning
...
Library/Homebrew/cmd/man.rb:44: warning: assigned but unused variable - commands
2016-04-19 15:08:34 +08:00
Martin Afanasjew
3680c4667f
man: replace split header/footer with ERB template
2016-04-17 20:43:27 +02:00
Martin Afanasjew
d8e427577d
man: pipe markup to 'ronn' to avoid temporary file
2016-04-17 20:43:27 +02:00
Martin Afanasjew
291ff3cc42
man: refactor and fix code style
...
Split monolithic method into more manageable chunks and fix code style.
2016-04-17 20:43:27 +02:00
Max Nordlund
b21f699ff2
Implement the brew help
command
...
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.
2016-04-10 22:59:24 +02:00
Martin Afanasjew
b0b5d22af1
man: modernize and reduce code duplication
...
Also use `popen_read` instead of `safe_system` for cleaner argument
passing and write the output with `atomic_write`.
Closes Homebrew/homebrew#46826 .
Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
2015-12-13 22:18:27 +01:00
Martin Afanasjew
4a89cfb1dc
man: remove broken --verbose functionality
2015-12-13 22:18:26 +01:00
Mike McQuaid
2c959a7d58
More API documentation.
...
And remove the documented stuff from the `example-formula.rb`.
Closes Homebrew/homebrew#43241 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-29 15:43:16 +01:00
BrewTestBot
13d544e11e
Core files style updates.
...
Closes Homebrew/homebrew#42354 .
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 13:22:35 +01:00
Baptiste Fontaine
bd42901fa7
'brew man': abort if a formula is given
...
Closes Homebrew/homebrew#40735 .
Closes Homebrew/homebrew#40736 .
Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
2015-06-18 20:06:11 +02:00
Mike McQuaid
9e8103cf38
Add Homebrew.install_gem_setup_path! function.
...
This uses the logic from tests.rb in man.rb too so that this can be
shared in a few places.
2015-01-02 12:42:02 +00:00
Jack Nagel
1c71fb4287
Drop executable bits from imported commands
...
Closes Homebrew/homebrew#32743 .
2014-09-27 23:57:03 -05:00
Mike McQuaid
dfce2bb7c7
brew-man: Rubify, make an internal command.
...
Closes Homebrew/homebrew#32472 .
2014-09-24 15:23:33 -07:00