Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.

Invoking other commands #2

Open
Ovyerus opened this issue Sep 17, 2019 · 0 comments
Open

Invoking other commands #2

Ovyerus opened this issue Sep 17, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Ovyerus
Copy link
Member

Ovyerus commented Sep 17, 2019

Running other commands from inside a command may come in handy for some circumstances.

Need to make a decision on how this would look syntax wise, some ideas:

  • async Context#invokeOn(cmd: string)
  • async Context#invokeOn<C extends Command>(cmd: C)
  • async Command#invokeWith(ctx: Context)
  • Just invoke instead of invokeWith or invokeOn?
@Ovyerus Ovyerus added the enhancement New feature or request label Sep 17, 2019
@Ovyerus Ovyerus self-assigned this Sep 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant