pare-swift
v0.24.2Pare Swift -- Structured Swift build, test, and package operations as typed JSON.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
build Swift Build
Builds a Swift package and returns structured compiler diagnostics.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
configuration | string | Build configuration (debug or release) |
path | string | Project root path |
product | string | Specific product to build |
target | string | Specific target to build |
verbose | boolean | Enable verbose output (-v) |
test Swift Test
Runs swift test and returns structured test results (name, status, pass/fail counts).
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
filter | string | Test name filter pattern (--filter) |
parallel | boolean | Run tests in parallel (--parallel) |
path | string | Project root path |
run Swift Run
Runs a Swift executable and returns structured output (exit code, stdout, stderr).
| Parameter | Type | Description |
|---|---|---|
args | array | Arguments to pass to the executable |
compact | boolean | Prefer compact output |
executable | string | Name of the executable product to run |
path | string | Project root path |
package-resolve Swift Package Resolve
Resolves Swift package dependencies and returns structured resolution results.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
path | string | Project root path |
package-update Swift Package Update
Updates Swift package dependencies and returns structured update results.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
packages | array | Specific packages to update (updates all if not specified) |
path | string | Project root path |
package-show-dependencies Swift Package Show Dependencies
Shows the dependency tree of a Swift package and returns structured dependency data.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
format | string | Output format (text/json/dot) |
path | string | Project root path |
package-clean Swift Package Clean
Cleans Swift package build artifacts and returns structured result.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
path | string | Project root path |
package-init Swift Package Init
Initializes a new Swift package and returns structured result with created files.
| Parameter | Type | Description |
|---|---|---|
compact | boolean | Prefer compact output |
name | string | Package name |
path | string | Project root path |
type | string | Package type to create |