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

cmd: add support for ENV command #469

Merged
merged 11 commits into from
Apr 24, 2024
Merged

Conversation

Delta456
Copy link
Contributor

Implements #419

image

Output examples/demo.gif
Env PROMPT ""

Require echo

Set Shell "bash"
Set FontSize 32
Set Width 1200
Set Height 600

Type "echo 'Welcome to VHS!'" Sleep 500ms  Enter

Sleep 5s

and also allows adding environment variables.

image

Env TESTING "this works"

Type "echo $TESTING"
Enter
Sleep 3s

command.go Outdated Show resolved Hide resolved
command.go Show resolved Hide resolved
@Delta456 Delta456 marked this pull request as ready for review April 18, 2024 18:08
@Delta456
Copy link
Contributor Author

Ready for review

command.go Outdated Show resolved Hide resolved
command.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@maaslalani
Copy link
Contributor

Awesome work @Delta456, thank you so much!

command.go Outdated Show resolved Hide resolved
command.go Outdated Show resolved Hide resolved
@maaslalani maaslalani merged commit 1fc8002 into charmbracelet:main Apr 24, 2024
8 checks passed
@Delta456 Delta456 deleted the cmd_env branch April 24, 2024 19:34
@rahji
Copy link

rahji commented Jul 14, 2024

Can we get a new Release so this feature is included when someone does go install github.com/charmbracelet/vhs@latest? PS the helix editor's syntax highlighting file will need updating.

@SVendittelli
Copy link

I second the request for a new release. I install using winget and I'd like to be able to use the new Env functionality.

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.

4 participants