Commit graph

91 commits

Author SHA1 Message Date
bth
b81d6f906e next : um next calls (um--header) and only prints the filename for piping : no more auto open 2026-08-13 11:50:38 -07:00
bth
b4b05e7994 next : send filename to stdout 2026-08-13 09:37:03 -07:00
bth
5aac37f8a8 Glob as variant of Arg Flag type : accepts multiple files, as shell-expanded. use in um sort and um cat
NOTE: um sort expects .md files, while um cat expects .um : .um filelists are concatted together, while .md lists are just lists
2026-07-15 17:31:13 -07:00
bth
65ed68460f cat --strip-file-links : handle lists of filenames 2026-07-15 13:52:43 -07:00
bth
dcbfa03251 cat : --strip-file-links 2026-07-15 13:43:50 -07:00
bth
73cc9389df cat : add a leading hr block 2026-07-15 12:52:00 -07:00
bth
c7961b7555 tag : simplify single tag handling 2026-06-08 20:13:20 -07:00
bth
762ced6734 tag : simplify nil handling 2026-06-08 20:09:12 -07:00
bth
bd86e90174 handle OR'd tags where the first tag matches nothing : assignment to nil map panic 2026-06-08 17:36:05 -07:00
bth
185393d62d move elisp into main dir for the sake of package.el 2026-05-19 10:58:54 -07:00
bth
f710377826 explicit help always exit 0 2026-01-30 09:55:06 -08:00
bth
db3f01e142 test expandOpts 2026-01-29 12:00:19 -08:00
bth
ec5eff4150 flags : ParseError return from expandOpts and Help for reflection guards 2026-01-29 11:44:53 -08:00
bth
3f5d73bf3e help : errors.As : assign to the HelpError constructed at callsite 2026-01-29 11:17:52 -08:00
bth
8fe659a171 help : HelpError holds cmd.Subcommand and summary : NewHelpError constructor 2026-01-29 11:09:55 -08:00
bth
d4015598be flags : return HelpError and print at the callsite 2026-01-29 10:23:11 -08:00
bth
b9809e332b Merge branch 'flags' 2026-01-28 21:43:54 -08:00
bth
8e7daebb18 A flags_test.go 2026-01-28 21:43:25 -08:00
bth
af3fb9f552 parseArgsInternal 2026-01-28 20:28:11 -08:00
bth
012110a369 flags : better method separation 2026-01-28 18:22:37 -08:00
bth
0fba550f1e next : better error 2026-01-28 15:55:46 -08:00
bth
78d33ae62d next : FILE_REGEXP should not assume ascii nor even unicode letters, just anything not a . 2026-01-28 13:22:36 -08:00
bth
a243d3c125 flags : handle String validation : works but getting messier all the time 2026-01-26 20:35:58 -08:00
bth
7dfad8c22e flags : IsHelp method 2026-01-26 19:51:45 -08:00
bth
b8156931fd flags : Flag interface instead of generic, allowing us to move the reflection out into a field expansion func only 2026-01-26 18:48:55 -08:00
bth
66880a32d9 zk 2026-01-23 09:48:21 -08:00
bth
03a08e8b42 tag : include newline in Grow 2026-01-22 19:29:27 -08:00
bth
a83b7c03ad tag : fix tests until i care to upgrade 2026-01-22 13:36:41 -08:00
bth
b903fe46a4 mv : mv to new descriptor while updating header 2026-01-22 12:15:40 -08:00
bth
14d124b8a6 cat : --keep-header and --keep-title : decapitate by default 2026-01-21 21:20:06 -08:00
bth
0642c15998 doc 2026-01-21 18:11:41 -08:00
bth
036e60ea64 cat : um help 2026-01-21 14:18:21 -08:00
bth
a3ea15e3eb cat : --base 2026-01-21 14:11:30 -08:00
bth
5c1aaeeefc cat : TrimSuffix always 2026-01-21 14:04:46 -08:00
bth
63b27faf29 cat : back to the simplicity of strings.Join 2026-01-21 13:25:40 -08:00
bth
cade3efe6f cat : fix previous : the make allocation was all wrong, use strings.Builder in place of strings.Join 2026-01-21 13:06:18 -08:00
bth
83ada09fb4 cat : preallocate by os.Stat() on every file first 2026-01-21 12:51:42 -08:00
bth
83c52e3e70 cat : first naive version 2026-01-21 12:43:12 -08:00
bth
7e6f8dd36c pipe : FileListSplit and better errors 2026-01-21 12:31:47 -08:00
bth
6f9f5dbb23 flags : reflection-powered general ParseArgs : uglier than tidy switch statements per cmd, but much easier to add new flags 2026-01-21 11:54:24 -08:00
bth
924024fa73 tag summary 2026-01-21 09:27:14 -08:00
bth
f645e18b5b flags.Help takes a summary string 2026-01-20 20:17:32 -08:00
bth
c2412caba6 last : move to its own pkg for sharing of GLOB pattern and --help, slightly overkill but consistent 2026-01-20 19:55:03 -08:00
bth
b69f3aabd0 sort : more consistent use of common libs 2026-01-20 19:42:28 -08:00
bth
18eab3cb85 last : filepath.Glob instead of exec.Command(ls) 2026-01-20 19:32:55 -08:00
bth
d35b26b754 tag : import tests from gag 2026-01-20 14:57:11 -08:00
bth
fb25a2bb43 tag : use IsSet 2026-01-20 14:51:51 -08:00
bth
744774878f tag : one call 2026-01-20 14:49:54 -08:00
bth
bab61c31a3 tag : break apart into smaller files of related function 2026-01-20 14:46:04 -08:00
bth
211bf38758 fix next const cmd 2026-01-20 14:31:11 -08:00