pwsh

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitScript

func InitScript() string

Hook returns the PowerShell hook template.

func NewShell added in v0.2.0

func NewShell() shell.Shell

Types

type ScriptGenerator

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

func NewScriptGenerator

func NewScriptGenerator(ctx shell.GenerateContext) *ScriptGenerator

func (*ScriptGenerator) AddComment

func (sg *ScriptGenerator) AddComment(comment string)

func (*ScriptGenerator) AddEnvironmentVariable

func (sg *ScriptGenerator) AddEnvironmentVariable(name string, value string) []byte

func (*ScriptGenerator) AddToPath

func (sg *ScriptGenerator) AddToPath(path string) []byte

func (*ScriptGenerator) AppendToScript

func (sg *ScriptGenerator) AppendToScript(script []byte, name string) error

func (*ScriptGenerator) Ctx

func (*ScriptGenerator) LoadEnvironment added in v0.2.0

func (sg *ScriptGenerator) LoadEnvironment(env *shell.Environment)

func (*ScriptGenerator) PrependToScript

func (sg *ScriptGenerator) PrependToScript(script []byte, name string) error

func (*ScriptGenerator) RemoveEnvironmentVariable

func (sg *ScriptGenerator) RemoveEnvironmentVariable(name string) []byte

func (*ScriptGenerator) RemoveFromPath

func (sg *ScriptGenerator) RemoveFromPath(path string) []byte

func (ScriptGenerator) SaveScript

func (sg ScriptGenerator) SaveScript(script []byte, name string) error

func (*ScriptGenerator) Script added in v0.2.0

func (sg *ScriptGenerator) Script() string

func (*ScriptGenerator) ScriptExists

func (sg *ScriptGenerator) ScriptExists(name string) bool

func (*ScriptGenerator) ScriptExtension

func (sg *ScriptGenerator) ScriptExtension() string

func (*ScriptGenerator) UnloadEnvironment added in v0.2.0

func (sg *ScriptGenerator) UnloadEnvironment(env *shell.Environment)

Jump to

Keyboard shortcuts

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