An open API service indexing awesome lists of open source software.

https://github.com/yutailang0119/progressspinnerkit

A library to display an ActivityIndicator for CLI.
https://github.com/yutailang0119/progressspinnerkit

cli swift swift-package-manager

Last synced: 10 months ago
JSON representation

A library to display an ActivityIndicator for CLI.

Awesome Lists containing this project

README

          


Swift 5.9
Swift Package Manager
Lincense



A library to display an ActivityIndicator for CLI.
Motivated by

* [apple/swift-tools-support-core//TSCUtility/ProgressAnimation](https://github.com/apple/swift-tools-support-core/blob/main/Sources/TSCUtility/ProgressAnimation.swift)
* [briandowns/spinner](https://github.com/briandowns/spinner)

## A Work In Progress

ProgressSpinnerKit is still in active development.

## Dome

![](./Documentation/Demo.gif)

## Installation

### [Swift Package Manager](https://swift.org/package-manager/)

```swift
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "ExamplePackage",
dependencies: [
.package(url: "https://github.com/yutailang0119/ProgressSpinnerKit", from: "0.5.0"),
],
targets: [
.target(name: "ExampleTarget", dependencies: ["ProgressSpinnerKit"]),
]
)
```

https://github.com/apple/swift-package-manager

## Usage

```swift
import TSCBasic
import ProgressSpinnerKit

let task = Task {
let spinner = progressSpinner(for: TSCBasic.stdoutStream, header: " Loading:")
await spinner.start()
}
// Something on the main thread.
task.cancel()
```

## Author

[Yutaro Muta](https://github.com/yutailang0119)
- muta.yutaro@gmail.com
- [@yutailang0119](https://twitter.com/yutailang0119)

## License

ProgressSpinnerKit is available under the MIT license. See [the LICENSE file](./LICENSE) for more info.
This software includes the work that is distributed in the Apache License 2.0.