cmd

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BcryptAPI -
	BcryptAPI = starlark.StringDict{
		"bcrypt": &starlarkstruct.Module{
			Name: "bcrypt",
			Members: starlark.StringDict{
				"hash": starlark.NewBuiltin("bcrypt.hash", core.ErrWrapper(bcryptModule{}.Hash)),
			},
		},
	}
)

Functions

func Execute

func Execute(executeOptions ...ExecuteOption) error

Execute executes the root command.

Types

type ExecuteOption

type ExecuteOption func(e *ExecuteOptions)

ExecuteOption -

func WithApplyFlags

func WithApplyFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption

WithApplyFlags adds global command line options to apply, delete and test

func WithFlags

func WithFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption

WithFlags adds global command line options

func WithK8s

func WithK8s(k func(configs ...k8s.Config) (k8s.K8s, error)) ExecuteOption

WithK8s overrides constructor for k8s

func WithModules

func WithModules(load func(thread *starlark.Thread, module string) (starlark.StringDict, error)) ExecuteOption

WithModules add new modules to kdo, which can be loaded using load inside starlark scripts

func WithTestFlags

func WithTestFlags(flags func(flagsSet *pflag.FlagSet)) ExecuteOption

WithTestFlags adds global command line options to apply, delete and test

func WithTestK8s

func WithTestK8s(k func(configs ...k8s.Config) (k8s.K8s, error)) ExecuteOption

WithTestK8s overrides constructor for k8s

type ExecuteOptions

type ExecuteOptions struct {
	// contains filtered or unexported fields
}

ExecuteOptions -

Jump to

Keyboard shortcuts

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