[BUG] `hok cat` regression
Opened this issue · 2 comments
OS: Win11
Version: 0.1.0-beta5
hok cat <package>
works before, now does not.
Error:
error: invalid value '' for '--style <components>': Unknown style, ''
For more information, try '--help'.
Nothing was changed in the hok cat
part in beta5. It seems you didn't set a value of the cat_style
config but had bat
installed. bat
is used by hok cat
when it's available and cat_style
is read when bat
is used.
To work around it, you may uninstall bat
or set a valid cat_style
value by using hok config set cat_style <value>
.
It seems you didn't set a value of the
cat_style
config but hadbat
installed.bat
is used byhok cat
when it's available andcat_style
is read whenbat
is used.
That's the point. I found a related issue ScoopInstaller/Scoop#4905: when scoop sets cat_style
to a non-empty value, it uses bat, which I hadn't noticed before.
scoop config cat_style default
makes a workaround.