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
b85b9bdf
Commit
b85b9bdf
authored
Feb 01, 2012
by
Eloy Durán
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #99 from chriseidhof/master
List command
parents
bfac2550
a8c7f085
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
0 deletions
+29
-0
command.rb
lib/cocoapods/command.rb
+3
-0
list.rb
lib/cocoapods/command/list.rb
+26
-0
No files found.
lib/cocoapods/command.rb
View file @
b85b9bdf
...
...
@@ -3,6 +3,7 @@ module Pod
autoload
:Install
,
'cocoapods/command/install'
autoload
:Repo
,
'cocoapods/command/repo'
autoload
:Search
,
'cocoapods/command/search'
autoload
:List
,
'cocoapods/command/list'
autoload
:Setup
,
'cocoapods/command/setup'
autoload
:Spec
,
'cocoapods/command/spec'
...
...
@@ -35,6 +36,7 @@ module Pod
"
\n
"
\
" * $ pod setup --help
\n
"
\
" * $ pod search --help
\n
"
\
" * $ pod list --help
\n
"
\
" * $ pod install --help
\n
"
\
" * $ pod repo --help
\n
"
\
" * $ pod spec --help"
...
...
@@ -72,6 +74,7 @@ module Pod
when
'install'
then
Install
when
'repo'
then
Repo
when
'search'
then
Search
when
'list'
then
List
when
'setup'
then
Setup
when
'spec'
then
Spec
end
...
...
lib/cocoapods/command/list.rb
0 → 100644
View file @
b85b9bdf
module
Pod
class
Command
class
List
<
Command
def
self
.
banner
%{List all pods:
$ pod list
Lists all available pods.}
end
def
initialize
(
argv
)
end
def
run
Source
.
all
.
each
do
|
source
|
source
.
pod_sets
.
each
do
|
set
|
puts
"==>
#{
set
.
name
}
(
#{
set
.
versions
.
reverse
.
join
(
", "
)
}
)"
puts
"
#{
set
.
specification
.
summary
.
strip
}
"
puts
end
end
end
end
end
end
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