fix(composer): spawn commands to allow interaction #71
No reviewers
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: NationTech/harmony#71
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/harmony-compose-deploy-output"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Using
Command::output()executes the command and wait for it to be finished before returning the output.For the
deploycommand, the user might need to interact with the CLI before continuing, which hangs the command execution.Instead, using
Command::spawn()allows to forward stdin/stdout to the parent process.fix(harmony-composer): spawn deploy command to allow interactionto fix(composer): spawn deploy command to allow interactionShould we apply right away the same fix for the other commands and use
spawninstead ofoutputin case users would need to interact with some of the commands?I don't see why not, go for it!
fix(composer): spawn deploy command to allow interactionto fix(composer): spawn commands to allow interaction