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
9aeafe16
Commit
9aeafe16
authored
May 21, 2014
by
Olivier Halligon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migration to CLAide::Argument (see CocoaPods/CLAide#33)
parent
ddfd715f
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
37 additions
and
34 deletions
+37
-34
help.rb
lib/cocoapods/command/help.rb
+1
-1
init.rb
lib/cocoapods/command/init.rb
+4
-4
inter_process_communication.rb
lib/cocoapods/command/inter_process_communication.rb
+2
-2
lib.rb
lib/cocoapods/command/lib.rb
+6
-4
project.rb
lib/cocoapods/command/project.rb
+6
-5
repo.rb
lib/cocoapods/command/repo.rb
+6
-6
push.rb
lib/cocoapods/command/repo/push.rb
+6
-6
search.rb
lib/cocoapods/command/search.rb
+1
-1
spec.rb
lib/cocoapods/command/spec.rb
+5
-5
No files found.
lib/cocoapods/command/help.rb
View file @
9aeafe16
...
@@ -3,7 +3,7 @@ module Pod
...
@@ -3,7 +3,7 @@ module Pod
class
Help
<
Command
class
Help
<
Command
self
.
summary
=
'Show help for the given command.'
self
.
summary
=
'Show help for the given command.'
self
.
arguments
=
[
self
.
arguments
=
[
[
'COMMAND'
,
:optional
]
CLAide
::
Argument
[
'COMMAND'
,
false
]
]
]
def
initialize
(
argv
)
def
initialize
(
argv
)
...
...
lib/cocoapods/command/init.rb
View file @
9aeafe16
...
@@ -8,9 +8,9 @@ module Pod
...
@@ -8,9 +8,9 @@ module Pod
self
.
summary
=
'Generate a Podfile for the current directory.'
self
.
summary
=
'Generate a Podfile for the current directory.'
self
.
description
=
<<-
DESC
self
.
description
=
<<-
DESC
Creates a Podfile for the current directory if none currently exists. If
Creates a Podfile for the current directory if none currently exists. If
an
Xcode project file is specified or if there is only a single project
an
`XCODEPROJ` project file is specified or if there is only a single
file in the current directory, targets will be automatically generated
project file in the current directory, targets will be automatically
based on targets defined in the project.
generated
based on targets defined in the project.
It is possible to specify a list of dependencies which will be used by
It is possible to specify a list of dependencies which will be used by
the template in the `Podfile.default` (normal targets) `Podfile.test`
the template in the `Podfile.default` (normal targets) `Podfile.test`
...
@@ -18,7 +18,7 @@ module Pod
...
@@ -18,7 +18,7 @@ module Pod
`~/.cocoapods/templates` folder.
`~/.cocoapods/templates` folder.
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'XCODEPROJ'
,
:optional
]
CLAide
::
Argument
[
'XCODEPROJ'
,
:false
]
]
]
def
initialize
(
argv
)
def
initialize
(
argv
)
...
...
lib/cocoapods/command/inter_process_communication.rb
View file @
9aeafe16
...
@@ -16,7 +16,7 @@ module Pod
...
@@ -16,7 +16,7 @@ module Pod
self
.
summary
=
'Converts a podspec to JSON.'
self
.
summary
=
'Converts a podspec to JSON.'
self
.
description
=
'Converts a podspec to JSON and prints it to STDOUT.'
self
.
description
=
'Converts a podspec to JSON and prints it to STDOUT.'
self
.
arguments
=
[
self
.
arguments
=
[
[
'PATH'
,
:required
]
CLAide
::
Argument
[
'PATH'
,
true
]
]
]
def
initialize
(
argv
)
def
initialize
(
argv
)
...
@@ -43,7 +43,7 @@ module Pod
...
@@ -43,7 +43,7 @@ module Pod
self
.
summary
=
'Converts a Podfile to YAML.'
self
.
summary
=
'Converts a Podfile to YAML.'
self
.
description
=
'Converts a Podfile to YAML and prints it to STDOUT.'
self
.
description
=
'Converts a Podfile to YAML and prints it to STDOUT.'
self
.
arguments
=
[
self
.
arguments
=
[
[
'PATH'
,
:required
]
CLAide
::
Argument
[
'PATH'
,
true
]
]
]
def
initialize
(
argv
)
def
initialize
(
argv
)
...
...
lib/cocoapods/command/lib.rb
View file @
9aeafe16
...
@@ -10,13 +10,15 @@ module Pod
...
@@ -10,13 +10,15 @@ module Pod
self
.
summary
=
'Creates a new Pod'
self
.
summary
=
'Creates a new Pod'
self
.
description
=
<<-
DESC
self
.
description
=
<<-
DESC
Creates a scaffold for the development of a new Pod according to the CocoaPods best practices.
Creates a scaffold for the development of a new Pod named `NAME`
If a `TEMPLATE_URL`, pointing to a git repo containing a compatible template, is specified, it will be used in place of the default one.
according to the CocoaPods best practices.
If a `TEMPLATE_URL`, pointing to a git repo containing a compatible
template, is specified, it will be used in place of the default one.
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'NAME'
,
:required
],
CLAide
::
Argument
[
'NAME'
,
true
],
[
'TEMPLATE_URL'
,
:optional
]
CLAide
::
Argument
[
'TEMPLATE_URL'
,
false
]
]
]
def
initialize
(
argv
)
def
initialize
(
argv
)
...
...
lib/cocoapods/command/project.rb
View file @
9aeafe16
...
@@ -79,14 +79,15 @@ module Pod
...
@@ -79,14 +79,15 @@ module Pod
self
.
summary
=
'Update outdated project dependencies'
self
.
summary
=
'Update outdated project dependencies'
self
.
description
=
<<-
DESC
self
.
description
=
<<-
DESC
Updates the Pods identified by the specified POD_NAMES. If no POD_NAMES are
Updates the Pods identified by the specified `POD_NAMES`. If no
specified it updates all the Pods ignoring the contents of the Podfile.lock.
`POD_NAMES` are specified it updates all the Pods ignoring the contents
This command is reserved to the update of dependencies and pod install should
of the Podfile.lock.
be used to install changes to the Podfile.
This command is reserved to the update of dependencies and pod install
should be used to install changes to the Podfile.
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'POD_NAMES...'
,
:optional
]
CLAide
::
Argument
[
'POD_NAMES...'
,
false
]
]
]
def
initialize
(
argv
)
def
initialize
(
argv
)
...
...
lib/cocoapods/command/repo.rb
View file @
9aeafe16
...
@@ -19,9 +19,9 @@ module Pod
...
@@ -19,9 +19,9 @@ module Pod
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'NAME'
,
:required
],
CLAide
::
Argument
[
'NAME'
,
true
],
[
'URL'
,
:required
],
CLAide
::
Argument
[
'URL'
,
true
],
[
'BRANCH'
,
:optional
]
CLAide
::
Argument
[
'BRANCH'
,
false
]
]
]
def
self
.
options
def
self
.
options
...
@@ -69,7 +69,7 @@ module Pod
...
@@ -69,7 +69,7 @@ module Pod
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'NAME'
,
:optional
]
CLAide
::
Argument
[
'NAME'
,
false
]
]
]
def
initialize
(
argv
)
def
initialize
(
argv
)
...
@@ -94,7 +94,7 @@ module Pod
...
@@ -94,7 +94,7 @@ module Pod
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'NAME | DIRECTORY'
,
:optional
]
CLAide
::
Argument
[
%w(NAME DIRECTORY)
,
false
]
]
]
def
self
.
options
def
self
.
options
...
@@ -162,7 +162,7 @@ module Pod
...
@@ -162,7 +162,7 @@ module Pod
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'NAME'
,
:required
]
CLAide
::
Argument
[
'NAME'
,
true
]
]
]
def
initialize
(
argv
)
def
initialize
(
argv
)
...
...
lib/cocoapods/command/repo/push.rb
View file @
9aeafe16
...
@@ -8,15 +8,15 @@ module Pod
...
@@ -8,15 +8,15 @@ module Pod
self
.
summary
=
'Push new specifications to a spec-repo'
self
.
summary
=
'Push new specifications to a spec-repo'
self
.
description
=
<<-
DESC
self
.
description
=
<<-
DESC
Validates
NAME.podspec or `*.podspec' in the current working dir, creates
Validates
`NAME.podspec` or `*.podspec' in the current working dir,
a directory and version folder for the pod in the local copy of
creates
a directory and version folder for the pod in the local copy of
REPO (~/.cocoapods/repos/[REPO]), copies the podspec file into the version
`REPO` (~/.cocoapods/repos/[REPO]), copies the podspec file into the
directory, and finally it pushes REPO
to its remote.
version directory, and finally it pushes `REPO`
to its remote.
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'REPO'
,
:required
],
CLAide
::
Argument
[
'REPO'
,
true
],
[
'NAME.podspec'
,
:optional
]
CLAide
::
Argument
[
'NAME.podspec'
,
false
]
]
]
def
self
.
options
def
self
.
options
...
...
lib/cocoapods/command/search.rb
View file @
9aeafe16
...
@@ -10,7 +10,7 @@ module Pod
...
@@ -10,7 +10,7 @@ module Pod
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'QUERY'
,
:required
]
CLAide
::
Argument
[
'QUERY'
,
true
]
]
]
def
self
.
options
def
self
.
options
...
...
lib/cocoapods/command/spec.rb
View file @
9aeafe16
...
@@ -19,7 +19,7 @@ module Pod
...
@@ -19,7 +19,7 @@ module Pod
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'NAME | https://github.com/USER/REPO'
,
:optional
]
CLAide
::
Argument
[
%w(NAME https://github.com/USER/REPO)
,
false
]
]
]
def
initialize
(
argv
)
def
initialize
(
argv
)
...
@@ -59,7 +59,7 @@ module Pod
...
@@ -59,7 +59,7 @@ module Pod
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'NAME.podspec | DIRECTORY | http://PATH/NAME.podspec, ...'
,
:optional
]
CLAide
::
Argument
[
%w(NAME.podspec DIRECTORY http://PATH/NAME.podspec ...')
,
false
]
]
]
def
self
.
options
def
self
.
options
...
@@ -153,7 +153,7 @@ module Pod
...
@@ -153,7 +153,7 @@ module Pod
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'NAME'
,
:optional
]
CLAide
::
Argument
[
'NAME'
,
false
]
]
]
def
self
.
options
def
self
.
options
...
@@ -187,7 +187,7 @@ module Pod
...
@@ -187,7 +187,7 @@ module Pod
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'NAME'
,
:optional
]
CLAide
::
Argument
[
'NAME'
,
false
]
]
]
def
self
.
options
def
self
.
options
...
@@ -229,7 +229,7 @@ module Pod
...
@@ -229,7 +229,7 @@ module Pod
DESC
DESC
self
.
arguments
=
[
self
.
arguments
=
[
[
'NAME'
,
:optional
]
CLAide
::
Argument
[
'NAME'
,
false
]
]
]
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