Commit graph

106 commits

Author SHA1 Message Date
Josh Hansen
8e2f206186 Remove eprintlns 2023-08-19 19:12:54 -07:00
Josh Hansen
790f7ed8de Key from iterator of strings 2023-08-19 15:07:58 -07:00
Josh Hansen
418cbfa2af Bug fix in parse_xattr; idx test passing 2023-08-19 14:43:33 -07:00
Josh Hansen
8732696dea Robustness / testing work 2023-08-18 23:53:43 -07:00
Josh Hansen
f280f71095 Unify setting of keys; test idx (not yet passing) 2023-08-18 21:22:16 -07:00
Josh Hansen
50ac78aba1 Extract init cmd 2023-08-18 17:57:12 -07:00
Josh Hansen
f43d69a48c Distinct Key type; anyhow error handling; Namespace enum; push_index_list 2023-08-18 17:51:34 -07:00
Josh Hansen
00f3d0a4f8 Somehow get tests passing 2023-08-17 00:18:21 -07:00
Josh Hansen
ab783292d5 Minimize the key string 2023-08-16 17:19:24 -07:00
Josh Hansen
c3773fd954 Custom ser/de for Xattr 2023-08-16 17:11:16 -07:00
Josh Hansen
d4fc4d14e1 Use String rather than Vec<u8> as we already restrict to UTF-8 2023-08-16 16:55:20 -07:00
Josh Hansen
4fdf4bbd7e Only put quotes around string values when necessary 2023-08-16 16:27:24 -07:00
Josh Hansen
4e89d7d7ad Remove unused import 2023-08-16 14:29:13 -07:00
Josh Hansen
3055cb96ec Get example running again with default index locations 2023-08-16 14:28:00 -07:00
Josh Hansen
78693a7b1e Decompose predicate 2023-08-16 13:58:06 -07:00
Josh Hansen
1a797f353e Extract set and idx 2023-08-15 14:08:01 -07:00
Josh Hansen
4d38e97f82 Get basic test of init passing 2023-08-15 13:48:13 -07:00
Josh Hansen
3cbdba3c93 Make get_key more robust and use it more widely; add but don't yet use get_index_info 2023-08-15 12:11:57 -07:00
Josh Hansen
989e1d147b Remove vestiges of regex crate 2023-08-11 21:45:56 -07:00
Josh Hansen
2c1b6417c1 Introduce init to set useful metadata for tables 2023-08-11 21:35:36 -07:00
Josh Hansen
d3c1c5fd54 Remove redundant name= 2023-08-11 21:13:23 -07:00
Josh Hansen
e84b532f34 Sort ls output by default; allow --nosort 2023-08-11 17:24:09 -07:00
Josh Hansen
eeea5fd0eb Add ls command 2023-08-11 17:08:01 -07:00
Josh Hansen
f0309baac7 Implement REPL 2023-08-11 14:20:59 -07:00
Josh Hansen
774262e18b Nicer prompt etc 2023-08-11 13:43:00 -07:00
Josh Hansen
ea630769bc Initial (not fully functional) REPL using rustyline 2023-08-11 13:29:43 -07:00
Josh Hansen
c74adecbff Use parse_xattr instead of providing a literal 2023-08-10 18:25:18 -07:00
Josh Hansen
ab59d42815 Make get recursive by default; allow --flat to disable 2023-08-10 18:10:14 -07:00
Josh Hansen
1bc8c9506e Fix typo 2023-08-10 18:09:59 -07:00
Josh Hansen
866041a3a9 Rename to Ghee 2023-08-08 23:46:13 -07:00
Josh Hansen
3292526e50 Port rm to nom parsing; remove standardize_xattr et al 2023-08-08 23:40:38 -07:00
Josh Hansen
4d13f6a721 Port cp and mv 2023-08-08 23:35:56 -07:00
Josh Hansen
8f1b912a82 Port set and idx to nom parsers 2023-08-08 22:18:45 -07:00
Josh Hansen
8f52363852 Use nom parser for field assignments using set
Makes example.sh run
2023-08-08 18:22:33 -07:00
Josh Hansen
87a7550558 Let Xattr attrs have dots; enforce namespace restriction 2023-08-08 12:16:08 -07:00
Josh Hansen
7b59d068ed Implement filtering by predicate on get 2023-08-07 22:39:20 -07:00
Josh Hansen
405c65131e Allow strings as an alternative to numbers 2023-08-07 12:04:18 -07:00
Josh Hansen
9cb4e2a465 Parse --where arguments/clauses using clap 2023-08-04 15:09:32 -07:00
Josh Hansen
ef7220cb55 A parser for WHERE-style predicates 2023-08-04 14:28:38 -07:00
Josh Hansen
3eb3b2b5bb Fully check xattr format; fill in user. prefix when absent 2023-08-03 13:26:54 -07:00
Josh Hansen
4193c602e2 Set user.mattress.keyname 2023-08-02 20:25:34 -07:00
Josh Hansen
1e333fe8a6 Extract cli.rs 2023-08-02 17:10:14 -07:00
Josh Hansen
82acf0de8a Only process files, not directories 2023-08-02 16:58:32 -07:00
Josh Hansen
04031e3e28 Implement idx 2023-08-02 16:47:25 -07:00
Josh Hansen
17d5c35a05 Add doc comments to commands 2023-08-02 16:47:15 -07:00
Josh Hansen
252a4f891b Rename Hatter -> Mattress 2023-08-02 14:09:45 -07:00
Josh Hansen
ee2c270a00 Provide default non-UTF8 output for get 2023-07-29 18:54:41 -07:00
Josh Hansen
3a84cdbc36 Only produce output if xattrs are present 2023-07-29 18:31:09 -07:00
Josh Hansen
bd7502d4ad Default to all fields when none provided (rm and get) 2023-07-29 18:29:25 -07:00
Josh Hansen
29462c0986 Implement remaining commands, hopefully correctly 2023-07-29 18:00:35 -07:00
Josh Hansen
35e2bb582a Get copy working when not specifying fields 2023-07-28 16:02:00 -07:00
Josh Hansen
2fb5d404ab Rename as hatter (htr) and customize release profile 2023-07-28 15:37:53 -07:00
Josh Hansen
f706170f2a Implement cp 2023-07-28 15:20:03 -07:00
Josh Hansen
0cf524cc2e Work on cp 2023-07-26 16:39:26 -07:00
Josh Hansen
085d8a57d0 Parse subcommands 2023-07-25 19:58:19 -07:00
Josh Hansen
4797e2da16 Begin development of xat 2023-07-25 16:09:56 -07:00