working on 'add remote' command and 'refresh' command
This commit is contained in:
@@ -2,18 +2,20 @@ package config
|
||||
|
||||
//Gvcconfig will be the struct that holds the entire client settings
|
||||
type Gvcconfig struct {
|
||||
Version string `toml:"version"`
|
||||
RootPath string `toml:"rootPath"`
|
||||
Remotes []Remote `toml:"remote"` //The remote servers for the repo
|
||||
Ignores Ignore `toml:"ignore"` //These files will be ignored for all add functions
|
||||
NoCompress Ignore `toml:"nocompress"` //For binary compression some files should be ignored because the performance hit isn't worth the size savings
|
||||
Version string `toml:"version"`
|
||||
RootPath string `toml:"rootPath"`
|
||||
CurrentBranch string `toml:"currentbranch"`
|
||||
Remotes []Remote `toml:"remote"` //The remote servers for the repo
|
||||
Ignores Ignore `toml:"ignore"` //These files will be ignored for all add functions
|
||||
NoCompress Ignore `toml:"nocompress"` //For binary compression some files should be ignored because the performance hit isn't worth the size savings
|
||||
}
|
||||
|
||||
//Remote will be a slice of remote server information
|
||||
type Remote struct {
|
||||
Name string `toml:"name"`
|
||||
Host string `toml:"host"`
|
||||
Port int `toml:"port"`
|
||||
Name string `toml:"name"`
|
||||
Host string `toml:"host"`
|
||||
Port int `toml:"port"`
|
||||
Default bool `toml:"default"` //Is this repo the default repo?
|
||||
}
|
||||
|
||||
//Ignore is for ignoring files to add or ignoring compress
|
||||
@@ -22,3 +24,10 @@ type Ignore struct {
|
||||
Exts []string `toml:"exts"`
|
||||
Folders []string `toml:"folders"`
|
||||
}
|
||||
|
||||
//Locked is a list of locked files/folders/wildcards
|
||||
type Locked struct {
|
||||
Files []string `toml:"files"`
|
||||
Exts []string `toml:"exts"`
|
||||
Folders []string `toml:"folders"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user