An open API service indexing awesome lists of open source software.

https://github.com/mtgto/docker-swift-format

Unofficial docker image for https://github.com/apple/swift-format
https://github.com/mtgto/docker-swift-format

dockerfile swift-format

Last synced: 10 days ago
JSON representation

Unofficial docker image for https://github.com/apple/swift-format

Awesome Lists containing this project

README

          

docker-swift-format
====
[![Docker Hub](https://img.shields.io/docker/v/mtgto/swift-format)](https://hub.docker.com/r/mtgto/swift-format/)

Unofficial docker image of [apple/swift-format](https://github.com/apple/swift-format).

## Usage

### Lint

```console
$ docker run --rm --workdir=/work --volume=$PWD:/work mtgto/swift-format:6.2 lint --recursive .
```

### Format

```console
$ docker run --rm --workdir=/work --volume=$PWD:/work mtgto/swift-format:6.2 format --in-place --recursive .
```

## Development

### Build & Push

```console
docker buildx build --platform linux/arm64/v8,linux/amd64 -t mtgto/swift-format:latest -t mtgto/swift-format:6.2 --push .
```