Swiftpack.co - erica/Swift-Cmdline-Utility as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by erica.
erica/Swift-Cmdline-Utility 0.0.8
Support utilities for command line development
⭐️ 4
🕓 1 week ago
macOS
.package(url: "https://github.com/erica/Swift-Cmdline-Utility.git", from: "0.0.8")

CmdlineUtility

Support code for developing command line utilities.

Contents

Key Entry

Raw mode key-press detection

Output Stream

A wrapper to convert an UnsafeMutablePointer<FILE> to a TextOutputStream

Transformative Output Stream

TextOutputStreams that apply a closure to transform their contents before printing.

Installation

File > Swift Packages > Add Package Dependency…:

https://github.com/erica/Swift-Cmdline-Utility

SwiftPM:

dependencies: [
    .package(url: "https://github.com/erica/Swift-Cmdline-Utility", from: "0.0.1"),
],
targets: [
    .target(
        name: "TARGET-NAME",
        dependencies: [
           .product(name: "CmdlineUtility"),
        ],
    ),
],

GitHub

link
Stars: 4
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

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