Documentation ¶
Overview ¶
Package render implements the template rendering related subcommands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Command ¶
type Command struct { cli.BaseCommand // contains filtered or unexported fields }
type RenderFlags ¶
type RenderFlags struct { // Source is the location of the input template to be rendered. // // Example: github.com/abcxyz/abc/t/rest_server@latest Source string // Dest is the local directory where the template output will be written. // It's OK for it to already exist or not. Dest string // See common/flags.GitProtocol(). GitProtocol string // ForceOverwrite lets existing output files in the Dest directory be overwritten // with the output of the template. ForceOverwrite bool // Ignore any values in the Inputs map that aren't valid template inputs, // rather than returning error. IgnoreUnknownInputs bool // See common/flags.Inputs(). Inputs map[string]string // See common/flags.InputFiles(). InputFiles []string // See common/flags.KeepTempDirs(). KeepTempDirs bool // Whether to prompt the user for template inputs. Prompt bool // See common/flags.DebugStepDiffs(). DebugStepDiffs bool // See common/flags.DebugScratchContents(). DebugScratchContents bool // See common/flags.SkipInputValidation(). SkipInputValidation bool // Manifest enables the writing of manifest files, which are an experimental // feature related to template upgrades. Manifest bool // Whether to *only* create a manifest file without outputting any other // files from the template. ManifestOnly bool }
RenderFlags describes what template to render and how.
func (*RenderFlags) Register ¶
func (r *RenderFlags) Register(set *cli.FlagSet)
Click to show internal directories.
Click to hide internal directories.