gotmplfunction

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandGotmplFunction

func CommandGotmplFunction(cliParams *settings.Run, ioStreams *terminal.IOStreams, path string) *cobra.Command

CommandGotmplFunction creates the 'get go-template-functions' subcommand

Types

type FunctionSummary added in v0.8.0

type FunctionSummary struct {
	Name        string `json:"name" yaml:"name" required:"true"`
	Description string `json:"description" yaml:"description"`
	Custom      bool   `json:"custom" yaml:"custom"`
}

FunctionSummary is the table-friendly output for function listing.

type Options

type Options struct {
	BinaryName string
	IOStreams  *terminal.IOStreams
	CliParams  *settings.Run

	// kvx output integration
	flags.KvxOutputFlags

	// Filter options
	Custom bool   // Show only custom (scafctl-specific) functions
	Sprig  bool   // Show only sprig library functions
	Search string // Search functions by name or description
	// contains filtered or unexported fields
}

Options holds configuration for the get go-template-functions command

func (*Options) RunGetFunction

func (o *Options) RunGetFunction(ctx context.Context, name string) error

RunGetFunction gets details about a specific function

func (*Options) RunListFunctions

func (o *Options) RunListFunctions(ctx context.Context) error

RunListFunctions lists all Go template extension functions

Jump to

Keyboard shortcuts

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