Documentation
¶
Index ¶
- Constants
- func ReadSimpleSettings(fs vfs.FileSystem, path string) (map[string]string, error)
- func Register(name string, fac TemplaterFactory, desc string)
- func SplitYamlDocuments(data []byte) ([][]byte, error)
- func Usage(scheme Registry) string
- type GoTemplater
- type None
- type Options
- func (o *Options) AddFlags(fs *pflag.FlagSet)
- func (o *Options) Complete(fs vfs.FileSystem) error
- func (o *Options) DefaultMode() string
- func (o *Options) Execute(data string) (string, error)
- func (o *Options) FilterSettings(args ...string) []string
- func (o *Options) ParseSettings(fs vfs.FileSystem, paths ...string) error
- func (o *Options) Usage() string
- type Registry
- type Spiff
- type Subst
- type Templater
- type TemplaterFactory
- type Values
Constants ¶
View Source
const KIND_TEMPLATER = "templater"
Variables ¶
This section is empty.
Functions ¶
func ReadSimpleSettings ¶
func Register ¶
func Register(name string, fac TemplaterFactory, desc string)
func SplitYamlDocuments ¶
Types ¶
type GoTemplater ¶
type GoTemplater struct{}
type Options ¶
Options defines the options for cli templating.
func (*Options) DefaultMode ¶
func (*Options) FilterSettings ¶
FilterSettings parses commandline argument variables. it returns all non variable arguments.
func (*Options) ParseSettings ¶
func (o *Options) ParseSettings(fs vfs.FileSystem, paths ...string) error
type Registry ¶
type Registry interface { Register(name string, fac TemplaterFactory, desc string) Create(name string, fs vfs.FileSystem) (Templater, error) Describe(name string) (string, error) KnownTypeNames() []string }
func DefaultRegistry ¶
func DefaultRegistry() Registry
func NewRegistry ¶
func NewRegistry() Registry
type TemplaterFactory ¶
type TemplaterFactory func(system vfs.FileSystem) Templater
type Values ¶
type Values map[string]interface{}
func ReadYAMLSettings ¶
func ReadYAMLSettings(fs vfs.FileSystem, path string) (Values, error)
Click to show internal directories.
Click to hide internal directories.