8000 GitHub - mipalgu/swift-scripting: A package for shell-like scripting in Swift.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mipalgu/swift-scripting

Repository files navigation

Scripting

A package for shell-like scripting in Swift.

Overview

This package provides a low-boilerplate means of scripting in Swift. You can write scripts that resemble shell scripts, but utilise Swift's structured concurrency. Essentially, this means that, apart from the await keyword and double quotes, the syntax is very similar to that of a typical shell script.

Here are some examples:

await "echo hello"
await "echo hello" > "outputfile.txt"
await "echo hello" | "cat -n" > "outputfile.txt"
await "echo $PATH" | #"tr ':' '\n'"# | "cat -n" > "outputfile.txt"

About

A package for shell-like scripting in Swift.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages

0