-
Notifications
You must be signed in to change notification settings - Fork 19
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
Feature: Swift argument parser #46
base: main
Are you sure you want to change the base?
Conversation
# Conflicts: # configen/OptionsParser.swift
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.
Looks good! A couple of things:
- As we discussed on Slack it seems well have to use Xcode 11.4 and above to contribute to Configen from now on, perhaps we should add something to the readme to point this out?
- I'd maybe update the configen binary in the ConfigenDemo app to the new one (I did this to test it and it shows as modified on git so think it needs updating anyway).
|
||
var autoGenerationComment: String { | ||
return """ | ||
// auto-generated by \(optionsParser.appName)\n// to add or remove properties, edit the mapping file: '\(optionsParser.inputHintsFilePath)'.\n// README: https://github.com/theappbusiness/ConfigGenerator/blob/master/README.md\n\n | ||
// auto-generated by \(options.appName)\n// to add or remove properties, edit the mapping file: '\(options.inputHintsFilePath)'.\n// README: https://github.com/theappbusiness/ConfigGenerator/blob/master/README.md\n\n | ||
""" |
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.
Unrelated, but if we're using a multi-line string we could just use return as normal instead of manually entering \n
– unless it's there for another reason.
There's also a few other normal strings that are using \n
so for readability we could consider making those multiline too, if we feel it does make it more readable that is. Could be something for a future PR anyway.
Removed the old CommandLineKit dependency in favour of the Swift Argument Parser package (see https://swift.org/blog/argument-parser/). This change IS backwards compatible.