unixutils

package
v0.5.0 Latest Latest
Warning

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

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

README

ContainerSSH UNIX Utilities Library

This library contains UNIX and Linux related utilities for ContainerSSH

⚠⚠⚠ Warning: This is a developer documentation. ⚠⚠⚠
The user documentation for ContainerSSH is located at containerssh.io.

ParseCMD

The ParseCMD() method takes a command line and parses it into an execv-compatible slice of strings.

args, err := unixutils.ParseCMD("/bin/sh -c 'echo \"Hello world!\"'")
//args will be: ["/bin/sh", "-c", "echo \"Hello world!\"]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCMD

func ParseCMD(cmd string) ([]string, error)

ParseCMD takes a shell command line and parses it into an execv-compatible slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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