Skip to content

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

@yeldarby

Description

@yeldarby

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.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions