Documentation ¶
Index ¶
- func CopyItem(itemPath string, destination string) error
- func DownloadFromGithub(shorthand, branch, filePath string) ([]byte, error)
- func DownloadFromUrl(url string) (content []byte, err error)
- func Fetch(url string) (content []byte, err error)
- func FilterTemplateDiretories(paths []string, suffix string) []string
- func GetTemplateDirectories() (paths []string, err error)
- func LocalGet(paths []string, itemname string, destination string)
- func LocalGetMany(itemnames []string)
- func LogError(message ...string)
- func LogNormal(message ...string)
- func LogRaw(message ...string)
- func LogSuccess(message ...string)
- func RemoteGet(whichRemote string, args []string)
- func SearchItem(paths []string, searchTerm string) string
- func TextBold(str string) string
- func TextUnderline(str string) string
- func WriteFile(filename string, content []byte) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadFromGithub ¶
* * DownloadFromGithub retrieves a file from a github repo
func DownloadFromUrl ¶
* * DownloadFromUrl retrives a file hosted at a URL * This works exactly as Fetch. Only exists to main consistency in * naming of remote-handling functions
func FilterTemplateDiretories ¶
* * FilterTemplateDiretories returns a slice of paths having the suffix * passed
func GetTemplateDirectories ¶
* * GetTemplateDirectories returns a slice of paths where templates * may be placed in. Note: returns an empty slice if env var $GIMME_PATH * is not set
func LocalGetMany ¶
func LocalGetMany(itemnames []string)
* * LocalGetMany allows passing many files to get locally
func LogSuccess ¶
func LogSuccess(message ...string)
func SearchItem ¶
* * SearchItem looks for an item in a list of paths. Returns path to the * first matched item. Returns empty string if not found.
func TextUnderline ¶
Types ¶
This section is empty.