cmd

package
v4.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitFlags

func InitFlags(command *cobra.Command)

InitFlags - initialize the various flags and help strings on the command. Note that the defaults set here are ignored, and instead defaults from *config.Config's ApplyDefaults method are used instead. Changes here must be reflected there as well.

func Main

func Main(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) error

Main -

func NewGomplateCmd

func NewGomplateCmd(stderr io.Writer) *cobra.Command

NewGomplateCmd -

func ParseDataSourceFlags

func ParseDataSourceFlags(c *gomplate.Config, datasources, contexts, templates, headers []string) error

ParseDataSourceFlags - sets DataSources, Context, and Templates fields from the key=value format flags as provided at the command-line Unreferenced headers will be set in c.ExtraHeaders

func ParsePluginFlags

func ParsePluginFlags(c *gomplate.Config, plugins []string) error

ParsePluginFlags - sets the Plugins field from the key=value format flags as provided at the command-line

Types

This section is empty.

Jump to

Keyboard shortcuts

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