Commit Graph

57 Commits

Author SHA1 Message Date
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 09a7fa22cf Merge pull request 'v0.3.0' (#14) from devel into master
cargo devel CI / cargo CI (push) Successful in 1m15s Details
Reviewed-on: #14
2024-05-13 16:34:21 +02:00
Christoph J. Scherr 378e3d7fd2 chore: bump to v0.3.0
cargo devel CI / cargo CI (push) Successful in 1m17s Details
2024-05-13 16:34:08 +02:00
Christoph J. Scherr 706c06ce6f Merge pull request 'read numbers from stdin' (#15) from feat/numbers-from-stdin into devel
cargo devel CI / cargo CI (push) Successful in 1m13s Details
Reviewed-on: #15
2024-05-13 16:32:37 +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
Christoph J. Scherr 1f4818ff98 Merge branch 'master' into devel
cargo devel CI / cargo CI (push) Successful in 1m15s Details
2024-05-13 15:55:04 +02:00
Christoph J. Scherr abb8ed4f2e Merge pull request 'add parser for all formats' (#13) from feat/parse-formats into devel
cargo devel CI / cargo CI (push) Has been cancelled Details
Reviewed-on: #13
2024-05-13 15:54:23 +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 2f14d672f4 chore: bump libpt to v0.5.1
cargo devel CI / cargo CI (push) Successful in 1m17s Details
2024-05-13 15:27:23 +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 44be69a262 test: add prefix to base32 parser test #13 2024-05-13 14:24:40 +02:00
Christoph J. Scherr 47894a3f26 test: numf_parser test for all types that should be supported by the generic #13
cargo devel CI / cargo CI (push) Failing after 1m9s Details
2024-05-13 13:51:46 +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 b007a54b4b docs: add base64 and base32 to the readme
cargo devel CI / cargo CI (push) Successful in 1m15s Details
2024-05-12 21:32:46 +02:00
Christoph J. Scherr 97608840b9 chore: bump version to v0.2.0
cargo devel CI / cargo CI (push) Successful in 1m16s Details
2024-05-12 21:21:34 +02:00
PlexSheep acdec5836e automatic cargo CI changes
cargo devel CI / cargo CI (push) Has been cancelled Details
2024-05-12 18:31:15 +00:00
Christoph J. Scherr 9700ae5b35 test: check set_format #12
cargo devel CI / cargo CI (push) Successful in 1m22s Details
2024-05-12 20:29:40 +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 a88a03eab7 test: padded prefixed formatting #12
cargo devel CI / cargo CI (push) Successful in 1m12s Details
2024-05-12 20:25:48 +02:00
Christoph J. Scherr 1f91710bda chore: format tests
cargo devel CI / cargo CI (push) Successful in 1m14s Details
2024-05-12 20:23:47 +02:00
Christoph J. Scherr b681a6b04d Merge branch 'test/basics' of https://git.cscherr.de/PlexSheep/numf into test/basics 2024-05-12 20:23:05 +02:00
Christoph J. Scherr fe01412467 test: add prefix test #12 2024-05-12 20:23:04 +02:00
PlexSheep cd7f7cc376 automatic cargo CI changes 2024-05-12 18:21:54 +00:00
Christoph J. Scherr 9bfc8504a4 test: add padding test #12
cargo devel CI / cargo CI (push) Successful in 1m21s Details
2024-05-12 20:20:36 +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 8b419048ef test: testing the format #12
cargo devel CI / cargo CI (push) Successful in 1m22s Details
2024-05-12 20:11:05 +02:00
Christoph J. Scherr 6251546a31 Merge pull request 'feat: padding and FormatOptions #9' (#11) from feat/padding into master
cargo devel CI / cargo CI (push) Successful in 1m14s Details
Reviewed-on: #11
2024-05-12 19:59:19 +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
Christoph J. Scherr 32ecd3cd97 chore: set publish to true
cargo devel CI / cargo CI (push) Successful in 1m16s Details
2024-05-12 18:54:31 +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 0f2ec91f62 docs: add categories and keywords
cargo devel CI / cargo CI (push) Successful in 1m13s Details
2024-05-12 18:49:11 +02:00
Christoph J. Scherr e186dd67f8 Merge pull request 'feat/other-formats' (#7) from feat/other-formats into master
cargo devel CI / cargo CI (push) Successful in 1m12s Details
Reviewed-on: #7
2024-05-12 18:46:11 +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
Christoph J. Scherr 66144dcb3c ci add cargo test of docs
cargo devel CI / cargo CI (push) Failing after 1m38s Details
2024-05-12 17:27:43 +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