Commit Graph

7 Commits

Author SHA1 Message Date
fb389fd309 Simplify subcommand parsing:
- one match statement to return a `Box<dyn Cmd>`
- one array containing all command names
Only two places to register new commands (besides their module), both in
crate::cmd::mod.rs. Also removes `once_cell` crate dependency.

Replace `base64` crate dependency with `data_encoding::BASE64` so that
both base32 and base64 commands use the same crate.
2023-01-06 23:41:02 -05:00
6b6cc314e8 Added color to base64 file header; Ran clippy lints and fixed all but
missing docs;
2023-01-04 15:14:16 -05:00
36835dd322 Added colored output for head and base32 applets (file header is green) 2023-01-04 14:26:44 -05:00
95b781ae9a Fix some clippy lints 2023-01-03 19:47:00 -05:00
829dad2c5f Added factor applet 2023-01-03 12:49:09 -05:00
2bce4afe7a Added dirname command; Fix wrap for base32; Various cleanups; 2023-01-01 11:26:56 -05:00
727c75d9a0 Added base32 command 2022-12-26 23:44:53 -05:00