Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tuist/command
📦 A micro Swift package with utilities for running system processes
https://github.com/tuist/command
shell system
Last synced: about 13 hours ago
JSON representation
📦 A micro Swift package with utilities for running system processes
- Host: GitHub
- URL: https://github.com/tuist/command
- Owner: tuist
- License: mit
- Created: 2024-04-15T18:02:35.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T03:18:41.000Z (20 days ago)
- Last Synced: 2024-10-29T12:56:58.097Z (19 days ago)
- Topics: shell, system
- Language: Swift
- Homepage: https://command.tuist.io
- Size: 1.43 MB
- Stars: 38
- Watchers: 3
- Forks: 2
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Command
[![All Contributors](https://img.shields.io/badge/all_contributors-2-orange.svg?style=flat-square)](#contributors-)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Ftuist%2FCommand%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/tuist/Command)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2Ftuist%2FCommand%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/tuist/Command)
[![Command](https://github.com/tuist/Command/actions/workflows/command.yml/badge.svg)](https://github.com/tuist/Command/actions/workflows/command.yml)
[![Docs](https://github.com/tuist/Command/actions/workflows/docs.yml/badge.svg)](https://github.com/tuist/Command/actions/workflows/docs.yml)Command is a micro Swift Package that provides utilities for running system processes. We extracted it from Tuist to make it available for other projects that might need to run system processes.
## Motivation
Given that `Foundation.Process` exists, you might be wondering why we created this package. There are several reasons:
- We integrate with [swift-log](https://github.com/apple/swift-log) to log debug information about the commands that are being run.
- We provide a more user-friendly API that makes it easier to run commands.
- We align the API with Swift's structured concurrency model, making it easier to run commands concurrently.
- We provide better error handling, making it easier to understand what went wrong when running a command.## Development
### Using Tuist
1. Clone the repository: `git clone https://github.com/tuist/Command.git`
2. Generate the project: `tuist generate`### Using Swift Package Manager
1. Clone the repository: `git clone https://github.com/tuist/Command.git`
2. Open the `Package.swift` with Xcode## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Natan Rolnik
💻
Andrew Barba
💻
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!