Add project open

This commit is contained in:
2023-12-12 16:30:33 -05:00
parent b7960ed1b4
commit bf213be9fb
6 changed files with 210 additions and 6 deletions

View File

@ -3,16 +3,23 @@ package config
import "time"
type Config struct {
GitlabHost string `yaml:"gitlabHost" json:"gitlabHost"`
GitlabToken string `yaml:"gitlabToken" json:"gitlabToken"`
LogLevel string `yaml:"logLevel" json:"logLevel" enum:"info,warn,debug,error"`
ProjectPath string `yaml:"projectPath" json:"projectPath"`
Cache cacheConfig `yaml:"cache" json:"cache"`
Editor editorConfig `yaml:"editor" json:"editor"`
GitlabHost string `yaml:"gitlabHost" json:"gitlabHost"`
GitlabToken string `yaml:"gitlabToken" json:"gitlabToken"`
LogLevel string `yaml:"logLevel" json:"logLevel" enum:"info,warn,debug,error"`
ProjectPath string `yaml:"projectPath" json:"projectPath"`
Cache cacheConfig `yaml:"cache" json:"cache"`
Dump struct {
Full bool
}
}
type editorConfig struct {
DisplayName string `yaml:"displanName" json:"displanName"`
Binary string `yaml:"binary" json:"binary"`
OpenFlags string `yaml:"openFlags" json:"openFlags"`
}
type loadConfig struct {
OwnerOnly bool `yaml:"ownerOnly" json:"ownerOnly"`
}