Documentation ¶
Index ¶
- func Execute(executeOptions ...ExecuteOption) error
- type ExecuteOption
- func WithApplyFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption
- func WithFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption
- func WithK8s(k func(configs ...shalm.K8sConfig) (shalm.K8s, error)) ExecuteOption
- func WithModules(...) ExecuteOption
- func WithTestFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption
- func WithTestK8s(k func(configs ...shalm.K8sConfig) (shalm.K8s, error)) ExecuteOption
- type ExecuteOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Execute ¶
func Execute(executeOptions ...ExecuteOption) error
Execute executes the root command.
Types ¶
type ExecuteOption ¶
type ExecuteOption func(e *ExecuteOptions)
ExecuteOption -
func WithApplyFlags ¶ added in v0.4.0
func WithApplyFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption
WithApplyFlags adds global command line options to apply, delete and test
func WithFlags ¶ added in v0.4.0
func WithFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption
WithFlags adds global command line options
func WithModules ¶
func WithModules(load func(thread *starlark.Thread, module string) (dict starlark.StringDict, err error)) ExecuteOption
WithModules add new modules to shalm, which can be loaded using load inside starlark scripts
func WithTestFlags ¶ added in v0.4.0
func WithTestFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption
WithTestFlags adds global command line options to apply, delete and test
func WithTestK8s ¶ added in v0.4.0
WithTestK8s overrides constructor for k8s
type ExecuteOptions ¶
type ExecuteOptions struct {
// contains filtered or unexported fields
}
ExecuteOptions -
Click to show internal directories.
Click to hide internal directories.