Skip to main content
Version: 2.2

Usage

CLI

Init Configuration

Initializes config file in the shell's current working directory:

gilt init

Overlay Repository

Overlay a remote repository into the destination provided.

gilt overlay

Debug

Display the git commands being executed.

gilt --debug overlay

Package

Overlay Repository

See example client in examples/go-client/.

func main() {
debug := true
logger := getLogger(debug)

c := config.Repositories{
Debug: debug,
GiltDir: "~/.gilt",
Repositories: []config.Repository{
{
Git: "https://github.com/retr0h/ansible-etcd.git",
Version: "77a95b7",
DstDir: "../tmp/retr0h.ansible-etcd",
},
},
}

var r repositoriesManager = repositories.New(c, logger)
r.Overlay()
}