caster

module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: MIT

README

caster

A file and directory templating cli

getting started

Caster is distributed as a single binary. You can download the latest version from the github releases page

You can either place caster in a system path or add the location to your system path.

You can also install caster with go install

git clone https://github.com/patrickhuber/caster
go install -C caster/cmd/caster

Once installed, you can run the hello world example by typing

caster init
caster apply

This creates a .caster.yml file in the current directory. The apply command will run the template in the current directory.

creating a template

A template is just a directory with a .caster.yml or .caster.json file at its root that describes the template.

The .caster file has no required fields

See the hello world example here for a sample hello world caster example.

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

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