shim

package
v1.43.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package shim is used for creating devenv specific command replacements.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddKubectl

func AddKubectl(opts ...Option) error

AddKubectl creates a kubectl shell script in $HOME/.local/dev-environment/bin. This script executes

devenv --skip-update kubectl "$@"

The function also adds the script to $PATH so it's picked by child processes.

Types

type Option

type Option func(*Options)

Option functions set options for

func WithShimDir

func WithShimDir(dir string) Option

WithShimDir set shim directory option

type Options

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

Options contain shim configuration

Jump to

Keyboard shortcuts

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