Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 715 Bytes

usage.md

File metadata and controls

51 lines (37 loc) · 715 Bytes
sidebar_position
4

Usage

CLI

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()
}