Commit graph

106 commits

Author SHA1 Message Date
Josh Hansen
6297d3e292 create and init also call ins if not a tty 2023-09-05 23:54:10 -07:00
Josh Hansen
ce104a5435 Propagate errors in get's walk callback 2023-09-05 23:52:41 -07:00
Josh Hansen
9e70b81858 Add create 2023-09-05 22:24:36 -07:00
Josh Hansen
4c16198510 Doc comments for cp and mv 2023-09-05 21:44:59 -07:00
Josh Hansen
c18c8f5d5d ls returns anhow::Result 2023-09-05 21:41:53 -07:00
Josh Hansen
9bcf8019b7 idx returns anyhow::Result 2023-09-05 21:27:30 -07:00
Josh Hansen
396e494839 rm returns anyhow::Result 2023-09-05 20:57:14 -07:00
Josh Hansen
17a1c7c829 Have cp and mv return anyhow::Results 2023-09-05 20:42:14 -07:00
Josh Hansen
11cd7c4af2 set returns Result 2023-09-05 20:12:20 -07:00
Josh Hansen
3c0e7cd516 Document all command functions 2023-09-05 20:07:13 -07:00
Josh Hansen
febc9b9de7 Expose distinct cp and mv; hide cp_or_mv from public interface 2023-09-05 19:57:19 -07:00
Josh Hansen
d175733379 Resume output of original table paths 2023-08-30 17:11:53 -07:00
Josh Hansen
0f605d1fe8 Accelerated get that doesn't traverse sub-indices; roadmap update 2023-08-30 16:17:10 -07:00
Josh Hansen
f4403379bb Drop PathKind et al 2023-08-29 14:25:55 -07:00
Josh Hansen
049e288d3f Test recursiveness a bit 2023-08-29 14:21:30 -07:00
Josh Hansen
3285042c73 Partially test omission of user.ghee when !all 2023-08-29 14:08:44 -07:00
Josh Hansen
e73afb76b0 Never recurse into nested indices; -a --all means show user.ghee; omit records with no xattrs 2023-08-29 14:06:05 -07:00
Josh Hansen
a0a327e8ff Overpower walk and PathVisit; pass a basic test 2023-08-28 23:33:15 -07:00
Josh Hansen
39180fe6b6 Generalize walk_records to allow non-initialized directories and bare files 2023-08-25 11:24:25 -07:00
Josh Hansen
288648130c Deref some &bool's 2023-08-25 11:23:07 -07:00
Josh Hansen
dae916bb56 Re-use loaded field values when outputting raw bytes 2023-08-24 16:44:50 -07:00
Josh Hansen
574b9de77b Decruft 2023-08-24 16:37:19 -07:00
Josh Hansen
a9f4f19400 Remove Hash impls 2023-08-24 16:35:49 -07:00
Josh Hansen
4e6b4471cd Stabilize output order by replacing HashMap with BTreeMap 2023-08-24 16:16:22 -07:00
Josh Hansen
e985456c29 Re-use xattr values already loaded 2023-08-24 15:58:52 -07:00
Josh Hansen
90be81132b Avoid needless clone 2023-08-24 15:49:55 -07:00
Josh Hansen
3064935485 Extract best_index 2023-08-24 15:47:56 -07:00
Josh Hansen
1fa1c9bd5d Only load xattr values if not already available 2023-08-24 15:47:40 -07:00
Josh Hansen
97946c6cdd Extract walk_records, indices, xattr_values_from_path 2023-08-23 23:09:12 -07:00
Josh Hansen
1bfc9804f6 Risky untested simplification of get
TODO test `get`
2023-08-23 14:45:51 -07:00
Josh Hansen
f2008e628b Make sure all predicates are satisfied before deleting; tests passing 2023-08-23 14:41:42 -07:00
Josh Hansen
f6071ad935 Test del in presence of a not-to-be-deleted record; failures with predicates 2023-08-23 14:22:10 -07:00
Josh Hansen
506cac8584 Implement del by predicate, tests now passing 2023-08-23 14:15:45 -07:00
Josh Hansen
14bae84760 Successful tests of over- and under-constrained del 2023-08-22 17:41:52 -07:00
Josh Hansen
ebadc89dd1 Failing tets of del predicate mode 2023-08-22 17:37:47 -07:00
Josh Hansen
7ad5563c12 Introduce del implemented only for default keys; includes tests 2023-08-22 17:29:46 -07:00
Josh Hansen
6d977218a2 Remove printlns 2023-08-22 13:45:15 -07:00
Josh Hansen
b6cecba5a0 Test compound keys on ins 2023-08-22 13:38:38 -07:00
Josh Hansen
fd13609285 Ensure the hard link directory exists 2023-08-22 13:36:34 -07:00
Josh Hansen
1095dfc950 Fully test ins 2023-08-22 13:21:37 -07:00
Josh Hansen
2cc0cc4325 Get ins to run 2023-08-22 13:11:04 -07:00
Josh Hansen
2611d0a21c Get tests passing 2023-08-21 21:49:54 -07:00
Josh Hansen
252fe2aaa2 Implement ins, with test failures, and lack of tests 2023-08-21 15:23:38 -07:00
Josh Hansen
c6e76083c0 Tee up creation of the ins command 2023-08-20 09:50:06 -07:00
Josh Hansen
4e1981c493 Extract ur-command cp_or_mv 2023-08-19 21:56:42 -07:00
Josh Hansen
299a0e7ad4 Extract cmd rs 2023-08-19 21:53:42 -07:00
Josh Hansen
ecfac68e04 Extract cmd ls 2023-08-19 21:48:29 -07:00
Josh Hansen
b644b448a3 Extract cmd get 2023-08-19 21:45:16 -07:00
Josh Hansen
46a0200aa9 Add fallback Bytes variant to Value; makes example.sh work again 2023-08-19 21:29:04 -07:00
Josh Hansen
661a8e5c51 &bool -> bool 2023-08-19 19:13:10 -07:00