Skip to content
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: Use Swift argument parser for CLI interface #12

Conversation

mikolasstuchlik
Copy link
Contributor

Swift argument parser https://github.com/apple/swift-argument-parser is an Apple maintained multiplatform package for creating simple CLI in a declarative manner.

I think that Apple maintained dependency might be considered safe from long-term perspective. If this PR is found acceptable, I would like to follow by using https://github.com/apple/swift-system instead of Darwin/Glib.

Notice: I would like to introduce some PRs that will focus on making this project more Swift idiomatic. For example I would like to look at the string manipulation, since Swift now uses utf8 under the hood. I would also like to remove higher order functions, since Swift has become less functional since it's curring and splating days. I have no plans to replace libxml2 however, since there is currently no better way of working with large XML files.

@rhx
Copy link
Owner

rhx commented May 18, 2021

I think this is a good idea, but the pull request seems to be incompatible with the current semantics of gir2swift (see the two failed tests). I had a quick look, but the structural changes make it a bit difficult to pinpoint the exact problem.

@rhx
Copy link
Owner

rhx commented May 20, 2021

I have pulled this into the development branch now and fixed the regression (boilerPlate file wasn't actually read).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants