package
Version:
v0.0.2
Opens a new window with list of versions in this module.
Published: Dec 15, 2022
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Root string `json:"root"`
Sources []Source `json:"sources"`
TmpDir string `json:"tmpdir"`
Noop bool `json:"noop"`
}
Config defines a set of sources and associated metadata
NewConfig loads a config from a given file or the default location
GetRoot parses the root location for copying
GetTmpDir parses the tmpdir for managing source repos
Sync updates a config set of sources
type Source struct {
URL string `json:"url"`
Name string `json:"name"`
Ignore []string `json:"ignore"`
}
Source defines a repo to pull files from
GetName parses the name for a source
Sync updates a single source
Source Files
¶
Click to show internal directories.
Click to hide internal directories.