Skip to content

uhooi/swift-output-uhooi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swift-output-uhooi

CI Release Swift Compatibility Platform Compatibility License Twitter

Uhooi speak the phrase.

Table of Contents

System requirements

  • Swift: 5.6+
  • Xcode: 13.3+
  • macOS: 12.0+

Installation

Mint

$ mint install uhooi/swift-output-uhooi

$ mint run uhooi/swift-output-uhooi uhooi -h

Swift Package Manager

  1. Create a folder for the CLI tools.
    Example: FooTools folder.

  2. In this folder, create a file called Package.swift , with the following contents:

    // swift-tools-version:5.6
    
    import PackageDescription
    
    let package = Package(
        name: "FooTools",
        platforms: [
            .macOS(.v12),
        ],
        dependencies: [
            .package(url: "https://github.com/uhooi/swift-output-uhooi", exact: "0.2.0"),
        ],
        targets: [.target(name: "FooTools", path: "")]
    )
  3. If you are running Xcode 11.4 or later, in the FooTools folder create a file called Empty.swift with nothing in it. This is to satisfy a change in Swift Package Manager.

  4. Build and run.

    $ swift build -c release --package-path FooTools --product uhooi
    
    $ FooTools/.build/release/uhooi -h

Use the binary

$ 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

Clone and Build/run

$ git clone https://github.com/uhooi/swift-output-uhooi.git
$ cd swift-output-uhooi
$ swift build -c release

$ .build/release/uhooi -h

How to use

$ 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.

Contribution

I would be happy if you contribute :)

Stats

Stats