Commit Graph

9 Commits

Author SHA1 Message Date
859071698a Use args::file() for input spec - base32/base64/rev 2023-02-04 11:20:45 -05:00
6b30c356dd Change Cmd::Run signature to take &clap::Options instead of
`Option<&clap::Options>` - saves 10k
2023-02-04 08:54:27 -05:00
fcc8abb67b Remove some allocations 2023-01-27 00:15:04 -05:00
9df197a4b9 Add chgrp applet; Add args module for commonly used args to increase
consistency
2023-01-21 18:25:09 -05:00
Nathan Fisher
a8c8ba5819 Simplified Cmd trait, trimmed 600K from binary size 2023-01-13 01:08:32 -05:00
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
Nathan Fisher
dff8561875 Merge branch 'odin' of git.hitchhiker-linux.org:jeang3nie/shitbox into odin 2023-01-03 23:21:42 -05:00
Nathan Fisher
9f9182f4cd Add base64 applet 2023-01-03 23:02:43 -05:00