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
5832226c
Commit
5832226c
authored
Apr 21, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Pod:Command] Improved help layout
parent
4e2bfd3e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
command.rb
lib/cocoapods/command.rb
+9
-13
No files found.
lib/cocoapods/command.rb
View file @
5832226c
...
@@ -19,12 +19,13 @@ module Pod
...
@@ -19,12 +19,13 @@ module Pod
def
message
def
message
[
[
@command_class
.
banner
,
''
,
''
,
'Options'
,
@command_class
.
banner
.
gsub
(
/\$ pod (.*)/
,
'$ pod \1'
.
green
),
'-------'
,
''
,
''
,
options
'Options:'
,
''
,
options
,
"
\n
"
,
].
join
(
"
\n
"
)
].
join
(
"
\n
"
)
end
end
...
@@ -46,15 +47,10 @@ module Pod
...
@@ -46,15 +47,10 @@ module Pod
end
end
def
self
.
banner
def
self
.
banner
"To see help for the available commands run:
\n
"
\
commands
=
[
'install'
,
'list'
,
'push'
,
'repo'
,
'search'
,
'setup'
,
'spec'
].
sort
"
\n
"
\
banner
=
"
\n
To see help for the available commands run:
\n\n
"
" * $ pod install --help
\n
"
\
commands
.
each
{
|
cmd
|
banner
<<
" * $ pod
#{
cmd
.
green
}
--help
\n
"
}
" * $ pod list --help
\n
"
\
banner
" * $ pod push --help
\n
"
\
" * $ pod repo --help
\n
"
\
" * $ pod search --help
\n
"
\
" * $ pod setup --help
\n
"
\
" * $ pod spec --help"
end
end
def
self
.
options
def
self
.
options
...
...
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