All apps/Swift

Swift

swift

A general-purpose programming language built using a modern approach to safety, performance, and software design patterns.

Runs as swift, swiftc|macOS, Linux, Windows|www.swift.org

Command form

ai-draft · 4 tasks · 16 fields

Build, run and test a Swift package. Compiler flags, package and other subcommands are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui swift

swift build

Build

Build sources into binary products.

BuildExample values, fixed in this page — nothing here reaches a terminal
Basic
Product
string
Target
string
Build tests too
--build-tests
TasksEach one presets the form for one job
Build package
producttargetbuild_tests
ParametersOnly these flags are editable in the form
Product
string
--product
Target
string
--target
Build tests too
boolean
--build-tests
Print binary path
boolean
--show-bin-path

swift run

Run

Build and run an executable product.

RunExample values, fixed in this page — nothing here reaches a terminal
Basic
Executable
string
Arguments
string
Skip build
--skip-build
TasksEach one presets the form for one job
Run executable
executableargumentsskip_build
ParametersOnly these flags are editable in the form
Executable
string · positional 0
Arguments
string · positional 1 · repeatable
Skip build
boolean
--skip-build
Build tests too
boolean
--build-tests
Launch REPL
boolean
--repl

swift test

Test

Build and run tests.

TestExample values, fixed in this page — nothing here reaches a terminal
Basic
Filter (regex)
string
Run in parallel
--parallel
TasksEach one presets the form for one job
Run tests
filterparallel
List tests
list_testsfilter
ParametersOnly these flags are editable in the form
Filter (regex)
string
--filter
Skip (regex)
string
--skip
Run in parallel
boolean
--parallel
Parallel workers
integer
--num-workers
Skip build
boolean
--skip-build
List tests
boolean
--list-tests-l
xUnit output file
path
--xunit-output
SourcesEvery flag above is checked against these
fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

fig
completion

github.com

Before it fills your prompt, Otty checks the installed swift against its version. A form that does not match your version is not offered.