Documentation ¶
Index ¶
- func InitFlags(command *cobra.Command)
- func Main(ctx context.Context, args []string, stdin io.Reader, stdout, stderr io.Writer) error
- func NewGomplateCmd(stderr io.Writer) *cobra.Command
- func ParseDataSourceFlags(c *gomplate.Config, datasources, contexts, templates, headers []string) error
- func ParsePluginFlags(c *gomplate.Config, plugins []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitFlags ¶
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 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 ¶
ParsePluginFlags - sets the Plugins field from the key=value format flags as provided at the command-line
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.