archetype

command module
v0.0.0-...-191bd37 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

README

archetype

Go Report Card

Initialise a new repository in the current directory from a template stored in a Git repository.

How to prepare an archetype repository

The repository should have a .archetype directory at its root, containing the archetype metadata. All the other repository files will be used to initialise the new repository.

The archetype metadata should contain the parameters.yml file, containing the parameters to be used to initialise the new repository.

If a reposiotry files

How to test

An example repository is available at git@github.com:go-git/go-git.git; you can check the v1.0.0 tag:

$> archetype init -r=https://github.com/go-git/go-git.git -t=v1.0.0 -p=@_test/parameters.yml

the repository HEAD (latest):

archetype init -r=git@github.com:go-git/go-git.git

or a specific commit (either by long or short hash):

archetype init -r=git@github.com:go-git/go-git.git -t=663f81a

They will each have different contents.

How to see the logs

In order to enable the logs, export or set the ARCHETYPE_LOG_LEVEL=d environment variable.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL