Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
9b36e837
Commit
9b36e837
authored
8 years ago
by
Tim D. Smith
Browse files
Options
Downloads
Patches
Plain Diff
Add magic token to hide commands from man page
Closes #402.
parent
be3d33ea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Homebrew/cmd/help.rb
+3
-2
3 additions, 2 deletions
Library/Homebrew/cmd/help.rb
Library/Homebrew/cmd/man.rb
+1
-1
1 addition, 1 deletion
Library/Homebrew/cmd/man.rb
Library/Homebrew/cmd/tests.rb
+1
-0
1 addition, 0 deletions
Library/Homebrew/cmd/tests.rb
with
5 additions
and
3 deletions
Library/Homebrew/cmd/help.rb
+
3
−
2
View file @
9b36e837
...
...
@@ -91,8 +91,9 @@ module Homebrew
line
.
slice
(
2
..-
1
).
sub
(
/^ \* /
,
"
#{
Tty
.
highlight
}
brew
#{
Tty
.
reset
}
"
).
gsub
(
/`(.*?)`/
,
"
#{
Tty
.
highlight
}
\\
1
#{
Tty
.
reset
}
"
).
gsub
(
/<(.*?)>/
,
"
#{
Tty
.
em
}
\\
1
#{
Tty
.
reset
}
"
)
end
.
join
gsub
(
/<(.*?)>/
,
"
#{
Tty
.
em
}
\\
1
#{
Tty
.
reset
}
"
).
gsub
(
"@hide_from_man_page"
,
""
)
end
.
join
.
strip
end
end
end
This diff is collapsed.
Click to expand it.
Library/Homebrew/cmd/man.rb
+
1
−
1
View file @
9b36e837
...
...
@@ -51,7 +51,7 @@ module Homebrew
map
{
|
line
|
line
.
slice
(
2
..-
1
)
}.
join
}.
reject
{
|
s
|
s
.
strip
.
empty?
}
reject
{
|
s
|
s
.
strip
.
empty?
||
s
.
include?
(
"@hide_from_man_page"
)
}
variables
[
:maintainers
]
=
(
HOMEBREW_REPOSITORY
/
"README.md"
).
read
[
/Homebrew's current maintainers are (.*)\./
,
1
].
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/cmd/tests.rb
+
1
−
0
View file @
9b36e837
#: @hide_from_man_page
#: * `tests` [`-v`] [`--coverage`] [`--generic`] [`--no-compat`] [`--only=`<test_script/test_method>] [`--seed` <seed>] [`--trace`]:
#: Run Homebrew's unit and integration tests.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment