aboutsummaryrefslogtreecommitdiff
path: root/pkg/config/config_test.go
diff options
context:
space:
mode:
authorGabriel A. Giovanini <mail@gabrielgio.me>2024-10-05 16:47:32 +0200
committerGabriel A. Giovanini <mail@gabrielgio.me>2024-10-05 16:47:32 +0200
commitada6a68b4f25c912705542a6b03aae7ffffb5e99 (patch)
tree63ffb7d4c2f6c8ce194f90f6b3568b9c08286bf9 /pkg/config/config_test.go
parent78af329f2c7bc1739bcd36baf45ab95aaff43434 (diff)
downloadcerrado-ada6a68b4f25c912705542a6b03aae7ffffb5e99.tar.gz
cerrado-ada6a68b4f25c912705542a6b03aae7ffffb5e99.tar.bz2
cerrado-ada6a68b4f25c912705542a6b03aae7ffffb5e99.zip
feat: Make syntax highlight configurable
Now cerrado has configurable theme through "syntax-highlight".
Diffstat (limited to 'pkg/config/config_test.go')
-rw-r--r--pkg/config/config_test.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go
index 0970cfa..9080351 100644
--- a/pkg/config/config_test.go
+++ b/pkg/config/config_test.go
@@ -105,6 +105,7 @@ repository /srv/git/cerrado.git {
listen-addr unix://var/run/cerrado/cerrado.sock
passphrase $2a$14$VnB/ZcB1DUDkMnosRA6Y7.dj8h5eroslDxTeXlLwfQX/x86mh6WAq
aes-key 8XHptZxSWCGs1m7QzztX5zNQ7D9NiQevVX0DaUTNMbDpRwFzoJiB0U7K6O/kqIt01jJVgzBUfiR8ES46ZLLb4w==
+syntax-highlight monokailight
scan "/srv/git" {
public true
@@ -123,9 +124,10 @@ repository /srv/git/cerrado.git {
Public: true,
Path: "/srv/git",
},
- ListenAddr: "unix://var/run/cerrado/cerrado.sock",
- Passphrase: "$2a$14$VnB/ZcB1DUDkMnosRA6Y7.dj8h5eroslDxTeXlLwfQX/x86mh6WAq",
- AESKey: "8XHptZxSWCGs1m7QzztX5zNQ7D9NiQevVX0DaUTNMbDpRwFzoJiB0U7K6O/kqIt01jJVgzBUfiR8ES46ZLLb4w==",
+ ListenAddr: "unix://var/run/cerrado/cerrado.sock",
+ Passphrase: "$2a$14$VnB/ZcB1DUDkMnosRA6Y7.dj8h5eroslDxTeXlLwfQX/x86mh6WAq",
+ AESKey: "8XHptZxSWCGs1m7QzztX5zNQ7D9NiQevVX0DaUTNMbDpRwFzoJiB0U7K6O/kqIt01jJVgzBUfiR8ES46ZLLb4w==",
+ SyntaxHighlight: "monokailight",
Repositories: []*GitRepositoryConfiguration{
{
Name: "linux.git",
@@ -158,6 +160,5 @@ repository /srv/git/cerrado.git {
t.Errorf("Wrong result given - wanted + got\n %s", diff)
}
})
-
}
}