templatecmd

package
v0.0.0-...-b99738b Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TemplateOp

type TemplateOp struct {
	TemplateFile string   `name:"t" usage:"template file"`
	OutputFile   string   `name:"o" usage:"output file"`
	FileMode     string   `name:"mode" usage:"file mode"`
	KeyFiles     []string `name:"F" usage:"key=file - set the value of <key> to the content of <file>"`
	property.Options
	PrintKeys   bool             `name:"print-keys" usage:"print keys without applying template"`
	PrintValues bool             `name:"print-values" usage:"print key/values without applying template"`
	Funcs       template.FuncMap `name:"-"`
}

func (*TemplateOp) Configured

func (t *TemplateOp) Configured() error

func (*TemplateOp) Init

func (t *TemplateOp) Init() error

func (*TemplateOp) Run

func (t *TemplateOp) Run() error

func (*TemplateOp) Values

func (t *TemplateOp) Values() (property.Properties, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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