Releases: Guitarbum722/align
Releases · Guitarbum722/align
Fix build shell script and Makefile
- Removes redundant build in
build.sh
- Fix
make build
andmake install
- Change directory before creating tarball
Minor bug fixes
Fixes a couple of minor bugs that transposed and truncated fields in certain cases.
v1.1.1
Fixes a bug where the processed lines were not actually being delimited with newlines on output.
Reduce allocations
Recent changes have greatly reduced the allocations used by the library when padding each field of the flat data input.
Minor updates and cleanup
- Removes an unused interface and commentary referencing it.
- Removes some extraneous logic when defaults were already defined.
- Some slight renaming and unexporting of underlying reader/writer which didn't need to be exported.
It's been 2 years. Going with a v1.0.0
.
Configurable padding option
- Add a
Pad
count toPaddingOpts
in order to choose the amount of whitespace around the separator. - Create the
-p
flag to the CLI for this padding option
Convert to library
-
Converted package to a lib and exposed the appropriate methods to create the public API thanks to @briandowns !
-
The CLI now lives in a subdirectory
/cmd
Options for justification by column number
Provides a new flag, -i
which allows the user to specify the justification for particular columns.
- 1 or more columns can have such an override specified
- The
-i
flag is NOT required
Example (default justification of left
with column overrides for field 1 and 4):
cat file.csv | align -i 1:right,4:center
- Minor updates to documentation
v0.2 - Additional support for international characters
- #57 revealed a bug for proper padding with certain international characters
- vendored a dependency which fixes the count of the string width properly
v0.1 - Initial Release
Features
- align text by a specified delimiter / separator
- specify a different output delimiter
- specify an input file or pipe to
stdin
(default) - specify an output file or write to
stdout
(default) - filter the fields outputted by column number
- left, center, or right justification
- escape the delimiter in a text field with a text qualifier option