unixutils

package module
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2020 License: MIT Imports: 1 Imported by: 8

README

ContainerSSH - Launch Containers on Demand

ContainerSSH UNIX Utilities Library

Go Report Card LGTM Alerts

This library contains UNIX and Linux related utilities for ContainerSSH

Note: This is a developer documentation.
The user documentation for ContainerSSH is located at containerssh.github.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