Comments (7)
Can anyone create a summary of how to use Commandant in a CLI Xcode project (and put it in the README)? Sure, I could look through Carthage's source, but there's a lot more to Carthage than just Commandant, so I would be wasting my time looking through it.
Thanks
from commandant.
The easiest way probably is to use the SwiftPM and generating the xcodeproj.
$ swift package init --type executable
Then adding Commandant as dependency.
At the end just run
$ swift package generate-xcodeproj
from commandant.
You have to jump through some hoops to use Swift in a CLI tool. I'd try to copy what Carthage does.
from commandant.
The root of the problem is that CLI tools statically link the swift stdlib while frameworks dynamically link it. AFAIK there's no way to force dynamic linkage of the stdlib for non-app bundles (c.f. Carthage/Carthage#16).
from commandant.
I agree with @Danappelxx . I need some simple template project for creating CLI tool with Commandant. Carthage it self is too complicated as starting point to learn how to use Commandant.
from commandant.
This would be a great thing to add to the Commandant repo. PRs welcome!
from commandant.
Thank you @vknabel . It works!
from commandant.
Related Issues (20)
- Detect --help, and run help HOT 2
- Dont mangle key typos. HOT 4
- Can't run tests on Linux HOT 6
- Any objections to cutting a release? HOT 2
- One `OrderedSet` test fails HOT 3
- Help message for Argument could be improved HOT 2
- Add owners to pod on CocoaPod trunk HOT 1
- Subcommand feature does not work on Ubuntu
- Drop Result dependency and implement Swift 5 Result
- 🍫 Podspec: Unrecognized `swift_version` key. HOT 1
- Aliases
- Cannot install using SPM
- `carthage checkout ` fails on using Commandant v0.8.3 HOT 3
- Adding dependencies to a CommandType's OptionType at init/evaluate time? HOT 5
- How can we declare consuming variadic arguments including `-` prefixed one in `OptionsType` HOT 3
- Recursive commands HOT 2
- The version 0.11 is not recognized with SPM. HOT 7
- swift build on Linux fails
- Release configuration build fails on Linux HOT 2
- Passing a Switch key is ignored if the Switch contains a flag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commandant.