Commit graph

25 commits

Author SHA1 Message Date
68d9cdaf69 feat: add hacky parsing for base32 and base64 2024-05-13 14:25:04 +02:00
6649470ff7 refactor: numf_parser takes a generic unsigned int 2024-05-13 13:51:17 +02:00
c6ad45fb82 test: add tests for numf_parser 2024-05-13 13:39:56 +02:00
18cccddbb2 test: fix numf_parser doctest 2024-05-13 13:31:33 +02:00
399021ecc6 feat: add a parser that can be used with clap for all formats except base32 and base64
Refs: 
2024-05-13 13:19:49 +02:00
290b959b7e refactor: more derives 2024-05-12 20:29:12 +02:00
47ae8e135b feat: add setters for FormatOptions 2024-05-12 20:19:57 +02:00
4f269fb509 refactor: add more derives 2024-05-12 19:54:45 +02:00
cae701815e refactor: use the cli struct as format options 2024-05-12 19:53:38 +02:00
82c1bf8d8a feat: padding and FormatOptions 2024-05-12 19:34:01 +02:00
PlexSheep
927a4b0043 automatic cargo CI changes 2024-05-12 16:52:35 +00:00
721467b260 docs: add author and version to --help flag 2024-05-12 18:51:18 +02:00
ec4aa09538 feat: add lib.rs 2024-05-12 18:43:52 +02:00
24bf6cd97e fix: use a dependency to split the int instead of a builtin function 2024-05-12 18:36:48 +02:00
PlexSheep
d4331a7492 automatic cargo CI changes 2024-05-11 23:57:29 +00:00
cb0c56107a feat: add base32 and use fast32 as dep 2024-05-12 01:56:13 +02:00
00304ddff0 feat: add base64 format
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
bd7a000968 Merge branch 'master' of https://git.cscherr.de/PlexSheep/numf 2024-05-12 01:05:49 +02:00
5a780f83e8 fix: print usage when no arguments are passed 2024-05-12 01:05:48 +02:00
PlexSheep
d3423a92b3 automatic cargo CI changes 2024-05-11 23:04:15 +00:00
3fd52c19dd refactor: move Format enum to a new module 2024-05-12 01:02:55 +02:00
d9c921ef9c refactor: use a larger integer type 2024-05-10 19:26:29 +02:00
df621fdb6d fix: fix cli interface to not need a format flag 2024-05-10 19:26:09 +02:00
6c66c285a0 feat: first working version 2024-05-10 19:26:09 +02:00
6ffe30986b Initial commit 2024-05-10 13:57:36 +02:00