Documentation
¶
Index ¶
- Constants
- Variables
- func CurrentDir() string
- func DirectoryHasHiddenFolder(directory string) bool
- func NeedUpdateConfigFile(filename string, force bool) bool
- func SetupBaseEnvironment() error
- func SetupEnvironment()
- func SetupEnvironmentVars(devFolder string, configurationFile string)
- type ConfigFileType
- type MetadataType
- type PathSetup
- type Paths
- func (pc *Paths) FindFolder(words []string) []PathSetup
- func (pc *Paths) FolderList() []string
- func (pc *Paths) Get(path string) (PathSetup, error)
- func (pc *Paths) Load(filename string) error
- func (pc *Paths) ReadFolders(devFolder string, maxSubLevel int) error
- func (pc *Paths) Save(filename string) error
- func (pc *Paths) Set(path PathSetup) error
Constants ¶
View Source
const MaximumAge = 86400
View Source
const MaximumSubLevel = 4
Variables ¶
View Source
var ( HomePath string ConfigFile ConfigFileType MaxFolderLevel int DevFolder string ConfigFileName string DefaultDevFolder string DefaultFolderConfigFile string DefaultOutputFile string )
View Source
var DefaultConfig = &ConfigFileType{ DevFolder: DefaultDevFolder, Paths: make(Paths), ConfigurationFile: DefaultFolderConfigFile, MaxSubLevels: MaximumSubLevel, }
Functions ¶
func CurrentDir ¶ added in v0.2.0
func CurrentDir() string
func NeedUpdateConfigFile ¶
func SetupBaseEnvironment ¶ added in v0.0.2
func SetupBaseEnvironment() error
func SetupEnvironment ¶ added in v0.0.2
func SetupEnvironment()
func SetupEnvironmentVars ¶ added in v0.0.2
Types ¶
type ConfigFileType ¶
type ConfigFileType struct {
DevFolder string `json:"dev_folder,omitempty"`
Paths Paths `json:"paths,omitempty"`
ConfigurationFile string `json:"configuration_file,omitempty"`
MaxSubLevels int `json:"max_sub_levels,omitempty"`
}
func (*ConfigFileType) Load ¶
func (cf *ConfigFileType) Load(fileName string) error
func (*ConfigFileType) Save ¶
func (cf *ConfigFileType) Save() error
func (*ConfigFileType) TryLoad ¶ added in v0.0.2
func (cf *ConfigFileType) TryLoad(fileName string) bool
type PathSetup ¶
Click to show internal directories.
Click to hide internal directories.