Commit Graph

41 Commits

Author SHA1 Message Date
Christoph J. Scherr 265ab0902b
refactor: write in binary now
cargo devel CI / cargo CI (push) Failing after 1m12s Details
2024-09-06 11:27:18 +02:00
Christoph J. Scherr 03a2243a3e docs(main): add a few explanatory comments to main
cargo devel CI / cargo CI (push) Has been cancelled Details
2024-05-23 13:29:03 +02:00
Christoph J. Scherr 71f1f2ba08 docs(main): remove module level doc comment in main.rs (not needed) 2024-05-23 13:26:15 +02:00
PlexSheep 93a27564c6 automatic cargo CI changes 2024-05-22 22:21:49 +00:00
Christoph J. Scherr 8fbc612f5a feat(rand): #19 #21 add max rand and use number parser 2024-05-23 00:20:07 +02:00
Christoph J. Scherr 0923bf5247 feat(rand): add rand option to FormatOptions
cargo devel CI / cargo CI (push) Successful in 1m33s Details
The user can now specify how many rand values to add to the list. The
Cli needed some minor changes.

Refs: #21 #19
2024-05-22 23:59:08 +02:00
Christoph J. Scherr 9c8446c78d docs(format): add module documentation and example
cargo devel CI / cargo CI (push) Successful in 1m17s Details
2024-05-16 18:10:05 +02:00
Christoph J. Scherr f4b8927a6a docs(help): change formulation for numbers
cargo devel CI / cargo CI (push) Successful in 1m20s Details
2024-05-16 17:32:45 +02:00
Christoph J. Scherr 9c9b476b22 docs: fix --help formatting
cargo devel CI / cargo CI (push) Has been cancelled Details
2024-05-13 17:13:33 +02:00
Christoph J. Scherr bf4e7b00d7 fix: only read from stdin if it's not a terminal #17
cargo devel CI / cargo CI (push) Successful in 1m14s Details
2024-05-13 17:01:38 +02:00
Christoph J. Scherr f93e5f6c4c fix: parse first then add numbers from stdin #16
cargo devel CI / cargo CI (push) Successful in 1m15s Details
2024-05-13 16:55:39 +02:00
Christoph J. Scherr 585bb41a9d refactor: split at whitespace #1 #15
cargo devel CI / cargo CI (push) Successful in 1m15s Details
2024-05-13 16:29:24 +02:00
Christoph J. Scherr 00c6b35ef3 feat: allow reading numbers from stdin #1
cargo devel CI / cargo CI (push) Successful in 1m16s Details
2024-05-13 16:26:35 +02:00
PlexSheep 6f50918f27 automatic cargo CI changes 2024-05-13 13:53:39 +00:00
Christoph J. Scherr 7eb00e0f56 refactor: use libpt for joining the base64 parser vec #5 #13
cargo devel CI / cargo CI (push) Successful in 1m24s Details
2024-05-13 15:52:18 +02:00
Christoph J. Scherr 1bb0ffd6f8 refactor: use libpt to join the fast32 vecs into the integer type #13 #5
cargo devel CI / cargo CI (push) Successful in 1m19s Details
2024-05-13 15:45:38 +02:00
Christoph J. Scherr 68d9cdaf69 feat: add hacky parsing for base32 and base64 #13 #5
cargo devel CI / cargo CI (push) Successful in 1m17s Details
2024-05-13 14:25:04 +02:00
Christoph J. Scherr 6649470ff7 refactor: numf_parser takes a generic unsigned int #13
cargo devel CI / cargo CI (push) Has been cancelled Details
2024-05-13 13:51:17 +02:00
Christoph J. Scherr c6ad45fb82 test: add tests for numf_parser #13
cargo devel CI / cargo CI (push) Failing after 1m17s Details
2024-05-13 13:39:56 +02:00
Christoph J. Scherr 18cccddbb2 test: fix numf_parser doctest #13 #5
cargo devel CI / cargo CI (push) Successful in 1m15s Details
2024-05-13 13:31:33 +02:00
Christoph J. Scherr 399021ecc6 feat: add a parser that can be used with clap for all formats except base32 and base64
cargo devel CI / cargo CI (push) Failing after 1m16s Details
Refs: #5
2024-05-13 13:19:49 +02:00
Christoph J. Scherr 290b959b7e refactor: more derives
cargo devel CI / cargo CI (push) Has been cancelled Details
2024-05-12 20:29:12 +02:00
Christoph J. Scherr 47ae8e135b feat: add setters for FormatOptions
cargo devel CI / cargo CI (push) Has been cancelled Details
2024-05-12 20:19:57 +02:00
Christoph J. Scherr 4f269fb509 refactor: add more derives
cargo devel CI / cargo CI (push) Successful in 1m11s Details
2024-05-12 19:54:45 +02:00
Christoph J. Scherr cae701815e refactor: use the cli struct as format options #11 #9
cargo devel CI / cargo CI (push) Has been cancelled Details
2024-05-12 19:53:38 +02:00
Christoph J. Scherr 82c1bf8d8a feat: padding and FormatOptions #9
cargo devel CI / cargo CI (push) Successful in 1m14s Details
2024-05-12 19:34:01 +02:00
PlexSheep 927a4b0043 automatic cargo CI changes 2024-05-12 16:52:35 +00:00
Christoph J. Scherr 721467b260 docs: add author and version to --help flag
cargo devel CI / cargo CI (push) Successful in 1m20s Details
2024-05-12 18:51:18 +02:00
Christoph J. Scherr ec4aa09538 feat: add lib.rs #10
cargo devel CI / cargo CI (push) Successful in 1m14s Details
2024-05-12 18:43:52 +02:00
Christoph J. Scherr 24bf6cd97e fix: use a dependency to split the int instead of a builtin function #8
cargo devel CI / cargo CI (push) Failing after 1m13s Details
2024-05-12 18:36:48 +02:00
PlexSheep d4331a7492 automatic cargo CI changes 2024-05-11 23:57:29 +00:00
Christoph J. Scherr cb0c56107a feat: add base32 and use fast32 as dep #4
cargo devel CI / cargo CI (push) Successful in 1m18s Details
2024-05-12 01:56:13 +02:00
Christoph J. Scherr 00304ddff0 feat: add base64 format #4
cargo devel CI / cargo CI (push) Successful in 1m10s Details
This commit adds the option to output base64. Note that this converts
numbers to base64, not strings. formatting 65 will output "QQ==", the
same as using 'echo -ne "A" | base64' would (A is 65 in ASCII).
2024-05-12 01:49:11 +02:00
Christoph J. Scherr bd7a000968 Merge branch 'master' of https://git.cscherr.de/PlexSheep/numf
cargo devel CI / cargo CI (push) Successful in 1m9s Details
2024-05-12 01:05:49 +02:00
Christoph J. Scherr 5a780f83e8 fix: print usage when no arguments are passed #2 2024-05-12 01:05:48 +02:00
PlexSheep d3423a92b3 automatic cargo CI changes 2024-05-11 23:04:15 +00:00
Christoph J. Scherr 3fd52c19dd refactor: move Format enum to a new module
cargo devel CI / cargo CI (push) Successful in 1m22s Details
2024-05-12 01:02:55 +02:00
Christoph J. Scherr d9c921ef9c refactor: use a larger integer type #3
cargo devel CI / cargo CI (push) Successful in 1m12s Details
2024-05-10 19:26:29 +02:00
Christoph J. Scherr df621fdb6d fix: fix cli interface to not need a format flag 2024-05-10 19:26:09 +02:00
Christoph J. Scherr 6c66c285a0 feat: first working version 2024-05-10 19:26:09 +02:00
Christoph J. Scherr 6ffe30986b Initial commit 2024-05-10 13:57:36 +02:00