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

[Feature Request]: Command Output #51

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AZMCode
Copy link

@AZMCode AZMCode commented Aug 23, 2021

Implementation of Feature Request in Issue #50

The double `await`s are necessary since the MultiCommand::execute()
method is both async and is carrying a Thenable from the child command,
which also needs to be unwrapped to mimick the return value correctly.
Copy link
Owner

@ryuta46 ryuta46 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a comment about the order of execution of each command in a sequence.

for (let command of this.sequence) {
await command.execute();
lastOutput = command.execute();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does removing await affect the order of execution of the sequence ?
Does the later command execute after the prior command has finished and waited the interval in setting ?

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.

2 participants