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

Cannot call value of non-function type 'module<Commander>' #2

Open
yeldarby opened this issue Oct 14, 2019 · 0 comments
Open

Cannot call value of non-function type 'module<Commander>' #2

yeldarby opened this issue Oct 14, 2019 · 0 comments

Comments

@yeldarby
Copy link

yeldarby commented Oct 14, 2019

I'm getting an error after installing and importing Commander via Swift Package Manager:

import Commander
Commander().dispatch() // <-- Cannot call value of non-function type 'module<Commander>'

Desktop (please complete the following information):

  • OS: macOS 10.15
  • Xcode: 11.1

Additional context
Calling Commander.dispatch() instead seems to work but no Options or arguments get passed to my commands. (I got this working by implementing init(from decoder:Decoder) -- that should probably be added to the docs.)

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

No branches or pull requests

1 participant