Categorygithub.com/containerssh/unixutils
modulepackage
1.0.0
Repository: https://github.com/containerssh/unixutils.git
Documentation: pkg.go.dev

# 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

⚠⚠⚠ 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!\"]

# Functions

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