Command Line Tool

workspace

Automates management of Swift projects.

Declaration

workspace

Subcommands

check‐for‐updates

Checks for available Workspace updates.

document

Generates API documentation.

empty‐cache

Removes any cached data.

help

Displays usage information.

normalise

Normalises the project’s files by removing trailing whitespace, applying Unix newlines, performing canonical decomposition and formatting Swift files.

proofread

Proofreads the project’s source for style violations.

refresh

Refreshes the project by updating its components and readying it for development.

set‐language [language preference]

Sets the language preference. (Omit the argument to revert to the system preferences.)

test

Runs the project’s test targets.

validate

Validates the project against a thorough battery of tests.

version

Displays the version in use.

Options

•language [language preference]

A language to use instead of the one specified in preferences.

•no‐colour

Removes colour from the output.

•use‐version [version]

Attempts to download and temporarily use the specified version insead of the one which is installed.

Argument Types

[language preference]

A list of IETF language tags or language icons. Semicolons indicate fallback order. Commas indicate that multiple languages should be used. Examples: ‘en-GB’ or ‘🇬🇧EN’ → British English, ‘cy,en;fr’ → both Welsh and English, otherwise French

[version]

A version number or ‘development’.

Linux macOS