Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
24230dc8
Commit
24230dc8
authored
Apr 26, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Pod::Command] Added --no-color option
parent
11616843
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
command.rb
lib/cocoapods/command.rb
+14
-0
No files found.
lib/cocoapods/command.rb
View file @
24230dc8
...
...
@@ -84,6 +84,20 @@ module Pod
argv
=
ARGV
.
new
(
argv
)
raise
Informative
,
VERSION
if
argv
.
option
(
'--version'
)
if
argv
.
option
(
'--no-color'
)
methods_to_ovverride
=
Colored
::
EXTRAS
.
keys
Colored
::
COLORS
.
keys
.
each
do
|
color
|
methods_to_ovverride
<<
color
methods_to_ovverride
<<
"on_
#{
color
}
"
Colored
::
COLORS
.
keys
.
each
do
|
highlight
|
methods_to_ovverride
<<
"
#{
color
}
_on_
#{
highlight
}
"
end
end
methods_to_ovverride
.
each
do
|
method_name
|
String
.
send
(
:define_method
,
method_name
.
to_sym
)
{
return
self
}
end
end
show_help
=
argv
.
option
(
'--help'
)
Config
.
instance
.
silent
=
argv
.
option
(
'--silent'
)
Config
.
instance
.
verbose
=
argv
.
option
(
'--verbose'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment