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
8c8c6de9
Commit
8c8c6de9
authored
Dec 18, 2011
by
Chris Eidhof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Command to list all available pods
parent
aa4549fe
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
0 deletions
+27
-0
command.rb
lib/cocoapods/command.rb
+3
-0
list.rb
lib/cocoapods/command/list.rb
+24
-0
No files found.
lib/cocoapods/command.rb
View file @
8c8c6de9
...
...
@@ -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 @
8c8c6de9
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
.
search_by_name
(
''
,
false
).
each
do
|
set
|
puts
"==>
#{
set
.
name
}
(
#{
set
.
versions
.
reverse
.
join
(
", "
)
}
)"
puts
"
#{
set
.
specification
.
summary
.
strip
}
"
puts
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