shell

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendBlock

func AppendBlock(path, body string) (bool, error)

func DetectShell

func DetectShell() string

func HasBlock added in v0.2.0

func HasBlock(path string) (bool, error)

func RCPath

func RCPath(shell string) (string, error)

func RemoveBlock

func RemoveBlock(path string) (bool, error)

func Render

func Render(in Input) string

func Script

func Script(shell string) (string, error)

func StdoutIsTerminal

func StdoutIsTerminal() bool

func Supported added in v0.2.0

func Supported() []string

Supported returns the shells nem integrates with. The list MUST match the embedded scripts/*.sh filenames; TestSupported_MatchesEmbeddedScripts pins the invariant.

Types

type Input

type Input struct {
	Active       map[string]string
	Lookup       Lookup
	BinDirs      []string
	OriginalPath string
}

type Lookup

type Lookup interface {
	Get(key string) (value string, ok bool)
}

Jump to

Keyboard shortcuts

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