charmbracelet / freeze

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

Add a `version` flag like #95

Open AlejandroSuero opened 2 months ago

AlejandroSuero commented 2 months ago

Is your feature request related to a problem? Please describe.

I am creating a plugin to use freeze from within Neovim called freeze-code.nvim.

In the plugin, for the :checkhealth command I am tracking the dependencies/shell-commands like:

checkhealth freze-code results

I am also tracking the versions but freeze doesn't have a version/--version flag to show it.

Describe the solution you'd like

To create a version command unlike the one in glow that when installed from go install github.com/charmbracelet/freeze@latest also will show the version instead of built from source.

Describe alternatives you've considered

If it can be a one line command or at least show VERSION v<version-number> like that to retrieve the string easier for the plugin check.

Additional context

glow -v