shell

package
v2.42.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownShell = errors.New("Error: Unknown shell")
)

Functions

func GenerateUsageHint

func GenerateUsageHint(userShell, cmdLine string) string

func GenerateUsageHintWithComment

func GenerateUsageHintWithComment(userShell, cmdLine string) string

func GetEnvString

func GetEnvString(userShell string, envName string, envValue string) string

func GetPathEnvString

func GetPathEnvString(userShell string, prependedPath string) string

func GetShell

func GetShell(userShell string) (string, error)

Types

type Config

type Config struct {
	Prefix     string
	Delimiter  string
	Suffix     string
	PathSuffix string
}

Jump to

Keyboard shortcuts

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