template

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Vars map[string]string
}

Options defines the options for component-cli templating

func (*Options) Parse

func (o *Options) Parse(args []string) []string

Parse parses commandline argument variables. it returns all non variable arguments

func (*Options) Template

func (o *Options) Template(data string) (string, error)

Template templates a string with the parsed vars.

func (*Options) Usage

func (o *Options) Usage() string

Usage prints out the usage for templating

Jump to

Keyboard shortcuts

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