Skip to content

Go library for extracting shell arguments from a string

License

Notifications You must be signed in to change notification settings

gentlemanautomaton/cmdline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmdline

GoDoc

Package cmdline provides shell argument parsing functions.

Split can be used to extract a slice of arguments from a string that contains an entire command line. The ability to split shell arguments is particularly useful when invoking exec.Command.

The cmdline package will use typical windows shell parsing rules when GOOS=windows. On non-windows systems posix shell parsing rules will be used.

To use posix or windows shell parsing regardless of GOOS, use the cmdlineposix and cmdlinewindows sub-packages directly.

About

Go library for extracting shell arguments from a string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages