Swiftpack.co -  Package - jandamm/SwiftShell
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
jandamm/SwiftShell
Collection of tools I want to use with swift-sh
.package(url: "https://github.com/jandamm/SwiftShell.git", from: "0.0.1")

swift-shell

Why

I really like shell scripting but some things are just easier when using Swift. This repo should be a collection of useful things I want to use in scripts. Probably don't rely on this package directly

Features

Value type abstraction for Process and Pipe

set -eou pipefail
echo 'abc' | pbcopy 2>/dev/null
try! run(command(.echo, "abc") | command(.pbcopy))

GitHub

link
Stars: 0
Last commit: 3 weeks ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco