|
|
bd86e90174
|
handle OR'd tags where the first tag matches nothing : assignment to nil map panic
|
2026-06-08 17:36:05 -07:00 |
|
|
|
185393d62d
|
move elisp into main dir for the sake of package.el
|
2026-05-19 10:58:54 -07:00 |
|
|
|
f710377826
|
explicit help always exit 0
|
2026-01-30 09:55:06 -08:00 |
|
|
|
db3f01e142
|
test expandOpts
|
2026-01-29 12:00:19 -08:00 |
|
|
|
ec5eff4150
|
flags : ParseError return from expandOpts and Help for reflection guards
|
2026-01-29 11:44:53 -08:00 |
|
|
|
3f5d73bf3e
|
help : errors.As : assign to the HelpError constructed at callsite
|
2026-01-29 11:17:52 -08:00 |
|
|
|
8fe659a171
|
help : HelpError holds cmd.Subcommand and summary : NewHelpError constructor
|
2026-01-29 11:09:55 -08:00 |
|
|
|
d4015598be
|
flags : return HelpError and print at the callsite
|
2026-01-29 10:23:11 -08:00 |
|
|
|
b9809e332b
|
Merge branch 'flags'
|
2026-01-28 21:43:54 -08:00 |
|
|
|
8e7daebb18
|
A flags_test.go
|
2026-01-28 21:43:25 -08:00 |
|
|
|
af3fb9f552
|
parseArgsInternal
|
2026-01-28 20:28:11 -08:00 |
|
|
|
012110a369
|
flags : better method separation
|
2026-01-28 18:22:37 -08:00 |
|
|
|
0fba550f1e
|
next : better error
|
2026-01-28 15:55:46 -08:00 |
|
|
|
78d33ae62d
|
next : FILE_REGEXP should not assume ascii nor even unicode letters, just anything not a .
|
2026-01-28 13:22:36 -08:00 |
|
|
|
a243d3c125
|
flags : handle String validation : works but getting messier all the time
|
2026-01-26 20:35:58 -08:00 |
|
|
|
7dfad8c22e
|
flags : IsHelp method
|
2026-01-26 19:51:45 -08:00 |
|
|
|
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 |
|
|
|
66880a32d9
|
zk
|
2026-01-23 09:48:21 -08:00 |
|
|
|
03a08e8b42
|
tag : include newline in Grow
|
2026-01-22 19:29:27 -08:00 |
|
|
|
a83b7c03ad
|
tag : fix tests until i care to upgrade
|
2026-01-22 13:36:41 -08:00 |
|
|
|
b903fe46a4
|
mv : mv to new descriptor while updating header
|
2026-01-22 12:15:40 -08:00 |
|
|
|
14d124b8a6
|
cat : --keep-header and --keep-title : decapitate by default
|
2026-01-21 21:20:06 -08:00 |
|
|
|
0642c15998
|
doc
|
2026-01-21 18:11:41 -08:00 |
|
|
|
036e60ea64
|
cat : um help
|
2026-01-21 14:18:21 -08:00 |
|
|
|
a3ea15e3eb
|
cat : --base
|
2026-01-21 14:11:30 -08:00 |
|
|
|
5c1aaeeefc
|
cat : TrimSuffix always
|
2026-01-21 14:04:46 -08:00 |
|
|
|
63b27faf29
|
cat : back to the simplicity of strings.Join
|
2026-01-21 13:25:40 -08:00 |
|
|
|
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 |
|
|
|
83ada09fb4
|
cat : preallocate by os.Stat() on every file first
|
2026-01-21 12:51:42 -08:00 |
|
|
|
83c52e3e70
|
cat : first naive version
|
2026-01-21 12:43:12 -08:00 |
|
|
|
7e6f8dd36c
|
pipe : FileListSplit and better errors
|
2026-01-21 12:31:47 -08:00 |
|
|
|
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 |
|
|
|
924024fa73
|
tag summary
|
2026-01-21 09:27:14 -08:00 |
|
|
|
f645e18b5b
|
flags.Help takes a summary string
|
2026-01-20 20:17:32 -08:00 |
|
|
|
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 |
|
|
|
b69f3aabd0
|
sort : more consistent use of common libs
|
2026-01-20 19:42:28 -08:00 |
|
|
|
18eab3cb85
|
last : filepath.Glob instead of exec.Command(ls)
|
2026-01-20 19:32:55 -08:00 |
|
|
|
d35b26b754
|
tag : import tests from gag
|
2026-01-20 14:57:11 -08:00 |
|
|
|
fb25a2bb43
|
tag : use IsSet
|
2026-01-20 14:51:51 -08:00 |
|
|
|
744774878f
|
tag : one call
|
2026-01-20 14:49:54 -08:00 |
|
|
|
bab61c31a3
|
tag : break apart into smaller files of related function
|
2026-01-20 14:46:04 -08:00 |
|
|
|
211bf38758
|
fix next const cmd
|
2026-01-20 14:31:11 -08:00 |
|
|
|
2505bd4cf9
|
tag : private methods : get used to camelCase
|
2026-01-20 14:13:10 -08:00 |
|
|
|
41b01c172b
|
tag : pipe stdin
|
2026-01-20 14:06:28 -08:00 |
|
|
|
f3fed60ff8
|
tag : dump from https://github.com/brtholomy/gag
|
2026-01-20 14:05:46 -08:00 |
|
|
|
c434005d39
|
cmd pkg for Subcommand type, use everywhere
|
2026-01-20 13:30:53 -08:00 |
|
|
|
77e3e23446
|
flags : more common help functions, but redefining the subcmds in each package is probably wrong, esp. since last had to be deduped
|
2026-01-20 13:10:47 -08:00 |
|
|
|
0ff9e6d9a3
|
next : consistent default case handling across subcmds
|
2026-01-19 18:25:06 -08:00 |
|
|
|
b5075786c6
|
last and sort should pipe to stdout
|
2026-01-19 12:29:39 -08:00 |
|
|
|
59b0c173aa
|
tag : --verbose
|
2026-01-19 11:48:10 -08:00 |
|