shellquote

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package shellquote provides functions for quoting strings for different shell interpreters.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fish

func Fish(s string) string

Fish returns a version of the string quoted for the Fish shell.

func POSIX added in v0.4.0

func POSIX(s string) string

POSIX returns a version of the string quoted for POSIX-compliant shells.

func PowerShell added in v0.4.0

func PowerShell(s string) string

PowerShell returns a version of the string quoted for PowerShell.

func Quote

func Quote(s string, shell string) (string, error)

Quote returns a version of the string quoted for the given shell interpreter. The value of shell must be "fish", "posix", or "powershell" (case-insensitive).

Types

This section is empty.

Jump to

Keyboard shortcuts

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