wrjfmt

command
v0.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2021 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

The wrjfmt command can be used to automatically reformat record jar files. It's not perfect and has some known issues - see below. Use with caution.

Usage:

wrjfmt [-t freetext_field] [-i file] [-o file]

The flags are:

-i file
	Input file to read (default stdin)
-o file
	Output file to write (default stdout)
-t fieldname
      The fieldname of the free text section. (default "description")

The output file may be the same as the input file, resulting in the original file being overwritten (see warning below as this could cause data loss!).

Known Issues

All comments will be stripped from the output file. In addition all string lists will be collapsed. For example:

OnAction: N
        : S
        : E
        : W

Will be re-written in the output file as:

OnAction: N : S : E : W

Camel cased field names, such as OnAction, will be title cased: Onaction.

Last of all, named free text fields, e.g. Description, will be turned into free text sections.

You have been warned!

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL