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
ba54d19c
Commit
ba54d19c
authored
Apr 26, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
"[Pod::Command] simplification of --no-color option"
parent
24230dc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
14 deletions
+2
-14
command.rb
lib/cocoapods/command.rb
+2
-14
No files found.
lib/cocoapods/command.rb
View file @
ba54d19c
...
...
@@ -84,24 +84,12 @@ 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'
)
String
.
send
(
:define_method
,
:colorize
)
{
return
self
}
if
argv
.
option
(
'--no-color'
)
command_class
=
case
argv
.
shift_argument
when
'install'
then
Install
when
'repo'
then
Repo
...
...
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