render

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectArgsFromAllSources added in v0.23.1

func CollectArgsFromAllSources(
	spec *template.Spec,
	argsFile string,
	flagArgsRaw []string,
	streams userio.IOStreams,
	existingArgs []template.Argument,
) ([]template.Argument, error)

func NewTemplateRenderCmd

func NewTemplateRenderCmd(cfg *config.Config) *cobra.Command

Types

type FlagsAwareTemplateRenderer added in v0.23.1

type FlagsAwareTemplateRenderer struct {
	ArgsFile string
	Args     []string
	Streams  userio.IOStreams
}

func (*FlagsAwareTemplateRenderer) Render added in v0.23.1

func (r *FlagsAwareTemplateRenderer) Render(spec *template.Spec, targetDirectory string, additionalArgs ...template.Argument) error

type StubTemplateRenderer added in v0.25.0

type StubTemplateRenderer struct {
	Renderer             TemplateRenderer
	PassedAdditionalArgs [][]template.Argument
}

func (*StubTemplateRenderer) Render added in v0.25.0

func (r *StubTemplateRenderer) Render(spec *template.Spec, targetDirectory string, additionalArgs ...template.Argument) error

type TemplateRenderOpts added in v0.23.0

type TemplateRenderOpts struct {
	Streams userio.IOStreams

	IgnoreChecks  bool
	ArgsFile      string
	Args          []string
	TemplateName  string
	TargetPath    string
	TemplatesPath string
}

type TemplateRenderer added in v0.23.1

type TemplateRenderer interface {
	Render(spec *template.Spec, targetDirectory string, additionalArgs ...template.Argument) error
}

Jump to

Keyboard shortcuts

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