An easy, fast and portable way to retrieve files somewhere.
Work In Progress
Things haven't gotten stable yet 👷
getme works by traversing a list of directories looking for the file you want. As soon as the file is found, it is copied to your current working directory. It can also retrieve the file from a remote source, such as Github. In short, it is given to you.
- compiles templates with custom values from you
- allows path prefixes, which in turn allows files with same name
- no configuration
- versioned
- programmatic adding of predefined paths e.g. Dropbox folder
- aware of hosted git repos e.g. Github
- works on Windows too. 😓
Using Go tools:
⇒ go get github.com/GochoMugo/getme⇒ getme local LICENSE-MIT .jshintrcThis will make getme look for the files LICENSE-MIT and .jshintrc in the configured template directories. See adding template directories
getme remote --url https://gochomugo.github.io/feed.xml feed.xml⇒ getme remote --github GochoMugo/getme master lib/getme.goGochoMugo/getme is a Github shorthand, master is the repo's branch, lib/getme.go is the path to the target file from the root of the repo.
⇒ getme helpgetme can be used as is, without any configurations. It will automatically look for files in directory .getme in your Home directory.
You may want it to look for files in other directories. This is possible using the $GETME_PATH variable.
On *nix machines, you could add the following line to ~/.bashrc (or equivalent file):
export GETME_PATH="path/to/some/dir:another/path"On Windows machines, you need to use the Control panel.
To increase productivity (every boss likes that), I've added some utilities to the utils directory that can be quite useful. These utilities may not be as portable as the getme program itself but we shall try our best.
The MIT License (MIT)
Copyright (c) 2015 GochoMugo mugo@forfuture.co.ke