summaryrefslogtreecommitdiffstats
path: root/config/config.go
diff options
context:
space:
mode:
authorLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-13 09:58:40 +0530
committerLibravatar Anirudh Oppiliappan <x@icyphox.sh>2022-12-13 09:58:40 +0530
commiteda8b58d9f2e85f1bae92ce3b70f279b89031046 (patch)
tree8b365320501fbbcac08f7abb9087eaef9c9b2711 /config/config.go
parent551c6637250172c5a2ca05070c011b1d72bb7d02 (diff)
downloadlegit-eda8b58d9f2e85f1bae92ce3b70f279b89031046.tar.gz
legit-eda8b58d9f2e85f1bae92ce3b70f279b89031046.tar.bz2
legit-eda8b58d9f2e85f1bae92ce3b70f279b89031046.zip
git: find main branch from config
Diffstat (limited to 'config/config.go')
-rw-r--r--config/config.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/config/config.go b/config/config.go
index 1a29e4f..278e17e 100644
--- a/config/config.go
+++ b/config/config.go
@@ -8,10 +8,11 @@ import (
)
type Config struct {
- Git struct {
- ScanPath string `yaml:"scanPath"`
- Readme []string `yaml:"readme"`
- } `yaml:"git"`
+ Repo struct {
+ ScanPath string `yaml:"scanPath"`
+ Readme []string `yaml:"readme"`
+ MainBranch []string `yaml:"mainBranch"`
+ } `yaml:"repo"`
Template struct {
Dir string `yaml:"dir"`
} `yaml:"template"`
@@ -21,7 +22,7 @@ type Config struct {
} `yaml:"meta"`
Server struct {
Host string `yaml:"host"`
- Port int `yaml:"port"`
+ Port int `yaml:"port"`
} `yaml:"server"`
}