{"id":17195389,"url":"https://github.com/dfed/swift-shell","last_synced_at":"2025-04-11T11:54:07.538Z","repository":{"id":40649470,"uuid":"484272630","full_name":"dfed/swift-shell","owner":"dfed","description":"A simple wrapper for executing shell commands from Swift","archived":false,"fork":false,"pushed_at":"2025-03-18T15:28:06.000Z","size":38,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-06T04:48:48.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dfed.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"Contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-22T02:42:15.000Z","updated_at":"2025-03-18T23:07:27.000Z","dependencies_parsed_at":"2025-03-17T18:39:37.861Z","dependency_job_id":"15b81d3b-cf18-45f6-b741-29f402363e2f","html_url":"https://github.com/dfed/swift-shell","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfed%2Fswift-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfed%2Fswift-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfed%2Fswift-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfed%2Fswift-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfed","download_url":"https://codeload.github.com/dfed/swift-shell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248391290,"owners_count":21095987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T01:50:16.627Z","updated_at":"2025-04-11T11:54:07.506Z","avatar_url":"https://github.com/dfed.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# swift-shell\n[![CI Status](https://img.shields.io/github/actions/workflow/status/dfed/swift-shell/ci.yml?branch=main)](https://github.com/dfed/swift-shell/actions?query=workflow%3ACI+branch%3Amain)\n[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://spdx.org/licenses/MIT.html)\n\nA simple wrapper for executing shell commands from Swift\n\n## Usage\n\n```\nimport SwiftShell\n\n// Getting output from a shell command:\nlet output = try Process.execute(#\"echo \"Hello, world!\"\"#)\n\n// Getting output from a shell command within a specific directory:\nlet output = try Process.execute(\"ls\", within: .path(\"~/\"))\n\n// Getting output from a shell command within a specific directory:\nlet output = try Process.execute(\"ls\", within: .url(.init(filePath: \"/tmp/\")))\n```\n\n## Requirements\n\n- Swift 6\n- Xcode 16.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfed%2Fswift-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfed%2Fswift-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfed%2Fswift-shell/lists"}