charmbracelet / freeze

Generate images of code and terminal output 📸
MIT License
2.98k stars 50 forks source link

feat(#100): show CMD for `--execute` if `--show-cmd` is added #101

Open AlejandroSuero opened 1 month ago

AlejandroSuero commented 1 month ago

With these changes, if the user adds the flag --show-cmd it will print the executed command when using --execute "<cmd>".

Demo:

https://github.com/charmbracelet/freeze/assets/71392160/21ee29ae-876f-49c9-bda8-132585f5685d

Closes #100

blacktop commented 1 month ago

This is perfect! 😍

AlejandroSuero commented 1 month ago

I added this locally to better showcase the command:

image

If you think is a good idea and want to add it, making tweaks to colours if needed too.