renderers

package
v7.3.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShellTypePowershell = "powershell"
	ShellTypePosix      = "posix"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory interface {
	Create(shellType string) (Renderer, error)
}

Factory defines a new renderer factory

func NewFactory

func NewFactory(envGetter helpers.EnvGetter) Factory

NewFactory creates a new factory

type Renderer

type Renderer interface {
	RenderEnvironmentVariable(variable string, value string) string
	Type() string
}

Renderer defines a rendering interface

func NewPosix

func NewPosix() Renderer

NewPosix defines a new posix renderer

func NewPowershell

func NewPowershell() Renderer

NewPowershell creates a new Powershell Renderer

Jump to

Keyboard shortcuts

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