Skip to content

Conversation

@ikesyo
Copy link
Member

@ikesyo ikesyo commented Aug 14, 2017

registry
    .register(FooCommand())
    .register(BarCommand())
    .register(BazCommand())

```swift
registry
    .register(FooCommand())
    .register(BarCommand())
    .register(BazCommand())
```
@mdiep
Copy link
Member

mdiep commented Aug 14, 2017

Would it make more sense to accept an array of commands instead?

registry.register(
    FooCommand(),
    BarCommand(),
    BazCommand()
)

@ikesyo
Copy link
Member Author

ikesyo commented Aug 14, 2017

Sounds good, so how about this?

registry
    .register(FooCommand(), BarCommand(), BazCommand())
    .main(defaultVerb: ...) { ... }

@mdiep mdiep merged commit ab80aa4 into master Aug 14, 2017
@mdiep mdiep deleted the chain-register branch August 14, 2017 15:53
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.

3 participants