dfmt 0.10.1

dfmt

Status

dfmt is beta quality. Make backups of your files or use source control
when using the --inplace option.

Building

Using Make

Clone the repository

Run `git submodule update --init --recursive` in the dfmt directory

To compile with DMD, run `make in the dfmt directory. To compile with
LDC, run make ldc instead. The generated binary will be placed in dfmt/bin/`.

Installing with DUB

> dub fetch --version='~master' dfmt && dub run dfmt -- -h

Using

By default, dfmt reads its input from stdin and writes to stdout.
If a file name is specified on the command line, input will be read from the
file instead, and output will be written to stdout.

dfmt uses EditorConfig files for configuration. If you run dfmt on a
source file it will look for .editorconfig files that apply to that source file.
If no file is specified on the command line, dfmt will look for .editorconfig
files that would apply to a D file in the current working directory. Command
line options can be used instead of .editorconfig files, or to override options
found there.

Options

--help | -h: Display command line options.

--inplace | -i: A file name is required and the file will be edited in-place.