Lay groundwork for multiple color-scheme support

This commit is contained in:
2024-04-10 17:03:37 -04:00
parent 13352ec2b4
commit 09eec99fe1
2 changed files with 9 additions and 3 deletions
+8 -2
View File
@@ -1,7 +1,10 @@
package cli
func glamourStyle() []byte {
return []byte(`{
func glamourStyle(styleName string) []byte {
if styleName == "custom" {
return []byte(`{}`) // TODO add support for custom color schemes
} else if styleName == "gruvbox" {
return []byte(`{
"document": {
"block_prefix": "\n",
"block_suffix": "\n",
@@ -198,4 +201,7 @@ func glamourStyle() []byte {
"html_span": {}
}
`)
} else {
return []byte(`{}`) // TODO add Go color scheme
}
}