internal

package
v0.0.0-...-b01f487 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func SHJoin

func SHJoin(args []string) string

SHJoin returns a shell-escaped string from args.

Example
fmt.Println(SHJoin([]string{
	``,
	`such/safe/123`,
	`$'b`,
}))
Output:

'' such/safe/123 '$'"'"'b'

func SHQuote

func SHQuote(s string) string

SHQuote returns a shell-escaped version of s.

Types

type Commands

type Commands []string

func (Commands) HandleSession

func (c Commands) HandleSession(client *ssh.Client) error

type Shell

type Shell struct {
	Command string
}

func (*Shell) HandleSession

func (s *Shell) HandleSession(client *ssh.Client) error

type Subsystem

type Subsystem struct {
	Command string
}

func (*Subsystem) HandleSession

func (sub *Subsystem) HandleSession(client *ssh.Client) error

Jump to

Keyboard shortcuts

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