Skip to content

vvmnnnkv/Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell

Execute command from Swift:

import Shell

// dull function
let res = shell("/bin/ls", ["-la"])
print("output:\n\(res.output)\n\nexit code: \(res.exitCode)")

// string extension
print("/bin/ls".shell("-la"))

// bang prefix func
!"ls -la"

About

Utility function to execute shell command

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages