Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
type File struct { PathTemplateConf string `yaml:"-"` PathUserConf string `yaml:"-"` // Path to configuration file Stderr io.Writer `yaml:"-"` MasterURLs []string `yaml:"masters,omitempty"` // URLs to master git repositories Templates []Template `yaml:"-"` // Template definitions }
File configuration as loaded from the configuration file
func (*File) AppendTemplate ¶
AppendTemplate appends a template to list of templates. If stop is non zero, the calling function should exit the program with the value contained in stop.
func (*File) SaveTemplates ¶
SaveTemplates saves template configuration file to disk
type SortByName ¶
type SortByName []Template
SortByName sort template alphabetically by name
func (SortByName) Len ¶
func (a SortByName) Len() int
func (SortByName) Less ¶
func (a SortByName) Less(i, j int) bool
func (SortByName) Swap ¶
func (a SortByName) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.