-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --add-sources option #177
Conversation
public let source: String? | ||
|
||
public init(name: String, nameSpecified: String?, version: String?) { | ||
self.name = name | ||
self.nameSpecified = nameSpecified | ||
self.version = version | ||
self.source = "https://cocoapods.org/pods/\(name)" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about this?
public let source: String? | |
public init(name: String, nameSpecified: String?, version: String?) { | |
self.name = name | |
self.nameSpecified = nameSpecified | |
self.version = version | |
self.source = "https://cocoapods.org/pods/\(name)" | |
} | |
public var source: String? { "https://cocoapods.org/pods/\(name)" } |
This is a common point in other public let source: String?
line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good, then we can drop the custom initializer.
Thanks, released now: https://github.com/mono0926/LicensePlist/releases/tag/3.19.0 |
Adds an optional
--add-sources
option that adds the source to the generated output. Defaults tofalse
.owner
andname