Commit Graph

26 Commits

Author SHA1 Message Date
Nathan Fisher 8e302f3f85 Add WIP truncate applet 2023-04-17 22:11:02 -04:00
Nathan Fisher 8c2f7f39e4 update deps 2023-04-04 14:03:32 -04:00
Nathan Fisher a16a77148d Add `who` utility 2023-03-14 22:17:46 -04:00
Nathan Fisher 226bc46888 Add `touch` applet 2023-02-24 19:07:53 -05:00
Nathan Fisher 44914ced6f Broke `stat` out into workspace crate; Reduced clap features for smaller
size;
2023-02-21 00:07:16 -05:00
Nathan Fisher 5a7c2008b5 Add `df` applet; Finalize some bootstrap details; 2023-02-17 19:01:30 -05:00
Nathan Fisher 83fcb52d80 Use `errno` workspace crate for `mount` and `stat` workspace crates 2023-02-13 00:41:58 -05:00
Nathan Fisher 05ce5422c0 Add `errno` workspace crate, fix error handling in `unistd` workspace
crate
2023-02-13 00:26:13 -05:00
Nathan Fisher 565e2c52d4 Add `swaplabel` applet 2023-02-07 10:34:09 -05:00
Nathan Fisher 06b88d2c24 Refactoring:
- Split into workspace crates
- Split into two binaries `corebox` and `hashbox`
- Add `mount` crate to workspace to prepare for third binary `utilbox`
2023-02-05 23:50:59 -05:00
Nathan Fisher f0099a2958 Add `b2sum` applet - switch to `blake2b_simd` crate to get around
limitations of `blake2` crate, which will not accept a non-const
numerical specifier for length
2023-02-04 11:06:24 -05:00
Nathan Fisher 5e0c1141ef Create generic `hash` module; Add `sha1sum`, `sha224sum` and `sha256sum`
applets
2023-02-04 00:56:02 -05:00
Nathan Fisher 8df1f99f70 Add `md5sum` applet 2023-02-03 19:12:40 -05:00
Nathan Fisher 6963ba4a4b Convert several commands to use raw system calls instead of libc
functions
2023-02-02 23:34:37 -05:00
Nathan Fisher e648a8a83a Cleanup `chown` applet 2023-01-19 19:08:09 -05:00
Nathan Fisher 3016f4c234 Add `chown` applet (untested not optimized) 2023-01-18 21:42:11 -05:00
Nathan Fisher 8a14cfb590 Add `rm` applet 2023-01-17 17:27:41 -05:00
Nathan Fisher 0513cdef2e Add `fold` utility 2023-01-08 11:40:08 -05:00
Nathan Fisher f70244ea49 Add nproc applet 2023-01-07 18:50:18 -05:00
Nathan Fisher 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
Nathan Fisher 84ede35190 Finish mountpoint applet 2023-01-05 19:20:12 -05:00
Nathan Fisher 36835dd322 Added colored output for head and base32 applets (file header is green) 2023-01-04 14:26:44 -05:00
Nathan Fisher 9f9182f4cd Add base64 applet 2023-01-03 23:02:43 -05:00
Nathan Fisher 727c75d9a0 Added base32 command 2022-12-26 23:44:53 -05:00
Nathan Fisher d190050798 Major API revamp 2022-12-25 18:29:09 -05:00
Nathan Fisher 228e1c779f Initial commit 2022-12-20 12:05:21 -05:00