Uhooi speak the phrase.
- Swift: 5.0+
- Xcode: 13.0+
- macOS: 11.3+
$ mint install uhooi/swift-output-uhooi
$ mint run uhooi/swift-output-uhooi uhooi -h
-
Create a folder for the CLI tools.
Example:FooTools
folder. -
In this folder, create a file called
Package.swift
, with the following contents:// swift-tools-version:5.5 import PackageDescription let package = Package( name: "FooTools", platforms: [ .macOS(.v11), ], dependencies: [ .package(url: "https://github.com/uhooi/swift-output-uhooi", exact: "0.2.0"), ], targets: [.target(name: "FooTools", path: "")] )
-
If you are running Xcode 11.4 or later, in the
FooTools
folder create a file calledEmpty.swift
with nothing in it. This is to satisfy a change in Swift Package Manager. -
Build and run.
$ swift build -c release --package-path FooTools --product uhooi $ FooTools/.build/release/uhooi -h
$ curl -OL https://github.com/uhooi/swift-output-uhooi/releases/download/0.2.0/uhooi.zip
$ unzip -o uhooi.zip
$ rm -f uhooi.zip
$ ./uhooi -h
$ git clone https://github.com/uhooi/swift-output-uhooi.git
$ cd swift-output-uhooi
$ swift build -c release
$ .build/release/uhooi -h
$ uhooi uhooooi
┌|▼▼|┘<uhooooi
$ uhooi "I'm uhooi."
┌|▼▼|┘<I'm uhooi.
$ uhooi --count 2 "I'm uhooi."
┌|▼▼|┘<I'm uhooi.
┌|▼▼|┘<I'm uhooi.
$ uhooi --include-counter --count 2 "I'm uhooi."
1: ┌|▼▼|┘<I'm uhooi.
2: ┌|▼▼|┘<I'm uhooi.
I would be happy if you contribute :)