pare-swift

v0.24.2
io.github.Dave-London/pare-swift Checked 8 hours ago Published 3 days ago

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

ParameterTypeDescription
compactbooleanPrefer compact output
configurationstringBuild configuration (debug or release)
pathstringProject root path
productstringSpecific product to build
targetstringSpecific target to build
verbosebooleanEnable verbose output (-v)

test Swift Test

Runs swift test and returns structured test results (name, status, pass/fail counts).

ParameterTypeDescription
compactbooleanPrefer compact output
filterstringTest name filter pattern (--filter)
parallelbooleanRun tests in parallel (--parallel)
pathstringProject root path

run Swift Run

Runs a Swift executable and returns structured output (exit code, stdout, stderr).

ParameterTypeDescription
argsarrayArguments to pass to the executable
compactbooleanPrefer compact output
executablestringName of the executable product to run
pathstringProject root path

package-resolve Swift Package Resolve

Resolves Swift package dependencies and returns structured resolution results.

ParameterTypeDescription
compactbooleanPrefer compact output
pathstringProject root path

package-update Swift Package Update

Updates Swift package dependencies and returns structured update results.

ParameterTypeDescription
compactbooleanPrefer compact output
packagesarraySpecific packages to update (updates all if not specified)
pathstringProject root path

package-show-dependencies Swift Package Show Dependencies

Shows the dependency tree of a Swift package and returns structured dependency data.

ParameterTypeDescription
compactbooleanPrefer compact output
formatstringOutput format (text/json/dot)
pathstringProject root path

package-clean Swift Package Clean

Cleans Swift package build artifacts and returns structured result.

ParameterTypeDescription
compactbooleanPrefer compact output
pathstringProject root path

package-init Swift Package Init

Initializes a new Swift package and returns structured result with created files.

ParameterTypeDescription
compactbooleanPrefer compact output
namestringPackage name
pathstringProject root path
typestringPackage type to create