shellquote

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package shellquote quotes strings for safe inclusion as a single argument in a POSIX shell command line, as used when composing remote commands invoked over SSH.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join(args []string) string

Join quotes each of args individually and joins them with spaces, producing a shell command fragment that survives re-parsing by the remote shell.

func Quote

func Quote(s string) string

Quote wraps s in single quotes, escaping any embedded single quotes, so that s is passed through as one shell word regardless of its contents.

Types

This section is empty.

Source Files

  • shellquote.go

Jump to

Keyboard shortcuts

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