-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
Missing support for async entry points #192
Comments
I'm not a Swift guy anymore (sadly). So I missed this update to the language. Also I haven't time to add it. The codebase isn't too taxing. Testing it locally is quite easy. I hope someone takes this on. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It doesn't seem like async entry points work when using
swift sh
, at least at first glance. I initially noticed this when migrating fromParsableCommand
toAsyncParsableCommand
, and all of a sudden my command only printed usage information, but never ran. Unfortunately, adding anawait
to the entry pointawait YourCommand.main()
doesn't work (non-async
main()
is preferred), though the likely proper solution is to implement something like in #163, but make sure async entry points are supported.For those that land here, there is a workaround:
The text was updated successfully, but these errors were encountered: