stencil

command module
v0.0.0-...-da99e07 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2025 License: MIT Imports: 12 Imported by: 0

README

stencil

Github Actions Workflow Status Go Reference

A command-line tool for generic code generation using Go template files.

Installation

go install github.com/bdreece/stencil@latest

or for Go projects:

go get -tool github.com/bdreece/stencil@latest

Usage


      |                  _) |
  __| __|  _ \ __ \   __| | |
\__ \ |    __/ |   | (    | |
____/\__|\___|_|  _|\___|_|_|

stencil is a command-line tool for generic code generation using Go template files.

Usage: stencil [options] <template-file>
  -data.file string
        path to JSON data file
  -data.json string
        inline JSON data
  -include value
        glob pattern of included templates (repeat for multiple patterns)
  -level int
        log level (debug -4, info 0, warn 4, error 8) (default 4)
  -out string
        path to generated output

Examples

See the examples/ directory for more examples.


MIT License

Copyright (c) 2025 Brian Reece

Documentation

Overview

stencil

A command-line tool for generic code generation using Go template files.

Template authoring is assisted by the inclusion of the github.com/Masterminds/sprig/v3 library.

Usage: stencil [options] <template-file>
	-data.file string
	      path to JSON data file
	-data.json string
	      inline JSON data
	-include value
	      glob pattern of included templates (repeat for multiple patterns)
	-level int
	      log level (debug -4, info 0, warn 4, error 8) (default 4)
	-out string
	      path to generated output

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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