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
8593dcbe
Commit
8593dcbe
authored
Apr 11, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added --update option to pod list command
parent
9bd415e4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
list.rb
lib/cocoapods/command/list.rb
+6
-1
No files found.
lib/cocoapods/command/list.rb
View file @
8593dcbe
...
@@ -15,6 +15,7 @@ module Pod
...
@@ -15,6 +15,7 @@ module Pod
end
end
def
self
.
options
def
self
.
options
" --update runs `pod repo update` before list
\n
"
+
SetPresent
.
options
+
super
SetPresent
.
options
+
super
end
end
...
@@ -22,6 +23,7 @@ module Pod
...
@@ -22,6 +23,7 @@ module Pod
executable
:git
executable
:git
def
initialize
(
argv
)
def
initialize
(
argv
)
@update
=
argv
.
option
(
'--update'
)
@new
=
argv
.
option
(
'new'
)
@new
=
argv
.
option
(
'new'
)
@presenter
=
Presenter
.
new
(
argv
)
@presenter
=
Presenter
.
new
(
argv
)
super
unless
argv
.
empty?
super
unless
argv
.
empty?
...
@@ -60,9 +62,12 @@ module Pod
...
@@ -60,9 +62,12 @@ module Pod
end
end
def
run
def
run
if
@
new
if
@
update
puts
"
\n
Updating Spec Repositories
\n
"
.
yellow
if
config
.
verbose?
puts
"
\n
Updating Spec Repositories
\n
"
.
yellow
if
config
.
verbose?
Repo
.
new
(
ARGV
.
new
([
"update"
])).
run
Repo
.
new
(
ARGV
.
new
([
"update"
])).
run
end
if
@new
list_new
list_new
else
else
list_all
list_all
...
...
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