-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: optimize incase of large inputs
Also changes --summarise flag to --summary. --summarise was recent and unreleased.
- Loading branch information
Showing
10 changed files
with
142 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -175,4 +175,6 @@ target/ | |
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
notes.md | ||
notes.md | ||
test.txt | ||
large_test.txt |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
complete -c prefix -s d -l delimiter -d 'Set delimiter string to print after each FIX field.' -r | ||
complete -c prefix -s h -l help -d 'Print help information' | ||
complete -c prefix -s V -l version -d 'Print version information' | ||
complete -c prefix -s v -l value -d 'Translate the values of some tags. (for Side: 1 -> Buy)' | ||
complete -c prefix -s s -l strip -d 'Strip the whitespace around the = in each field. Less human readable but closer to real FIX.' | ||
complete -c prefix -s c -l color -d 'Adds colour to the delimiter and = in for FIX fields, auto will colour only when printing directly into a tty' -r -f -a "{always\t'',auto\t'',never\t''}" | ||
complete -c prefix -s d -l delimiter -d 'Set delimiter string to print after each FIX field' -r | ||
complete -c prefix -s z -l summary -d 'Summarise each fix message based on an optional template' -r | ||
complete -c prefix -s s -l strip -d 'Strip the whitespace around the = in each field' | ||
complete -c prefix -s t -l tag -d 'Translate all numbers to tag names whether part of a message or not' | ||
complete -c prefix -s v -l value -d 'Translate the values of some tags (for Side: 1 -> Buy)' | ||
complete -c prefix -s h -l help -d 'Print help' | ||
complete -c prefix -s V -l version -d 'Print version' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,43 @@ | ||
.ie \n(.g .ds Aq \(aq | ||
.el .ds Aq ' | ||
.TH prefix 1 "prefix 1.0.4" | ||
.TH prefix 1 "prefix 1.1.0" | ||
.SH NAME | ||
prefix \- A customizable pretty printer for FIX messages | ||
.SH SYNOPSIS | ||
\fBprefix\fR [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fB\-d\fR|\fB\-\-delimiter\fR] [\fB\-v\fR|\fB\-\-value\fR] [\fB\-s\fR|\fB\-\-strip\fR] [\fImessage\fR] | ||
\fBprefix\fR [\fB\-c\fR|\fB\-\-color\fR] [\fB\-d\fR|\fB\-\-delimiter\fR] [\fB\-s\fR|\fB\-\-strip\fR] [\fB\-z\fR|\fB\-\-summary\fR] [\fB\-t\fR|\fB\-\-tag\fR] [\fB\-v\fR|\fB\-\-value\fR] [\fB\-h\fR|\fB\-\-help\fR] [\fB\-V\fR|\fB\-\-version\fR] [\fImessage\fR] | ||
.SH DESCRIPTION | ||
A customizable pretty printer for FIX messages | ||
.SH OPTIONS | ||
.TP | ||
\fB\-h\fR, \fB\-\-help\fR | ||
Print help information | ||
\fB\-c\fR, \fB\-\-color\fR=\fIwhen\fR [default: auto] | ||
Adds colour to the delimiter and = in for FIX fields, auto will colour only when printing directly into a tty | ||
.br | ||
|
||
.br | ||
[\fIpossible values: \fRalways, auto, never] | ||
.TP | ||
\fB\-V\fR, \fB\-\-version\fR | ||
Print version information | ||
\fB\-d\fR, \fB\-\-delimiter\fR=\fIdelimiter\fR [default: \\n] | ||
Set delimiter string to print after each FIX field | ||
.TP | ||
\fB\-s\fR, \fB\-\-strip\fR | ||
Strip the whitespace around the = in each field | ||
.TP | ||
\fB\-z\fR, \fB\-\-summary\fR=\fItemplate\fR | ||
Summarise each fix message based on an optional template | ||
.TP | ||
\fB\-d\fR, \fB\-\-delimiter\fR [default: | ||
] | ||
Set delimiter string to print after each FIX field. | ||
\fB\-t\fR, \fB\-\-tag\fR | ||
Translate all numbers to tag names whether part of a message or not | ||
.TP | ||
\fB\-v\fR, \fB\-\-value\fR | ||
Translate the values of some tags. (for Side: 1 \-> Buy) | ||
Translate the values of some tags (for Side: 1 \-> Buy) | ||
.TP | ||
\fB\-s\fR, \fB\-\-strip\fR | ||
Strip the whitespace around the = in each field. Less human readable but closer to real FIX. | ||
\fB\-h\fR, \fB\-\-help\fR | ||
Print help | ||
.TP | ||
\fB\-V\fR, \fB\-\-version\fR | ||
Print version | ||
.TP | ||
[\fImessage\fR] | ||
FIX message to be parsed, if not provided will look for a message piped through stdin | ||
.SH VERSION | ||
v1.0.4 | ||
v1.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.