Skip to content
This repository has been archived by the owner on Oct 2, 2022. It is now read-only.

0.9.0: ParseCMD

Pre-release
Pre-release
Compare
Choose a tag to compare
released this 05 Dec 20:01
· 9 commits to main since this release
3f2fba5

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