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

Instead of Sleep'ing, can the tape 'auto-advance' upon completion of the previous command? #537

Open
paragchandra opened this issue Oct 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@paragchandra
Copy link

Is your feature request related to a problem? Please describe.
I've started using VHS to record demos of command-line utilities I've been developing, which has been working pretty well - so first off, thanks for this great utility. I guess the main 'complaint' I have is that I have to repeatedly try a command to see how long it might take in the worst case, so that I know how long to Sleep for, so that VHS captures all the output of the command.

Describe the solution you'd like
I think it would be more intuitive if VHS could just wait for a command to complete - and optionally exit on nonzero return code - before proceeding to the next command. Maybe that can't be directly supported by the existing 'Type' command, since that could be just to type text into a text editor or similar, so perhaps a different keyword would be needed.

Describe alternatives you've considered
I've looked at asciinema, which does operate in this sort of 'blocking' manner I've described, but I really like the ability to essentially 'script' my demos ahead of time and then let VHS take care of the rest, rather than typing live while asciinema records.

Additional context
Hopefully the description above is clear enough, and if this is 'by design', that's fine too..

@paragchandra paragchandra added the enhancement New feature or request label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant