|
|
eb6b019e74
|
git.bth.moi/bth/um
|
2026-09-06 16:55:46 -07:00 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
f645e18b5b
|
flags.Help takes a summary string
|
2026-01-20 20:17:32 -08:00 |
|
|
|
b69f3aabd0
|
sort : more consistent use of common libs
|
2026-01-20 19:42:28 -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 |
|
|
|
03d38b4ba7
|
flags.ValidateIncrementFetchOrExit to handle value expecting Flag[string]
|
2026-01-19 11:37:01 -08:00 |
|
|
|
ba46937c3c
|
sort : port over full code, fix flag value iteration skipping in parseArgs
|
2026-01-19 11:20:37 -08:00 |
|
|
|
5b930f4526
|
more error strings
|
2026-01-19 09:21:41 -08:00 |
|
|
|
c00904a004
|
log.Fatal and more consistent error strings
|
2026-01-19 09:17:49 -08:00 |
|
|
|
c19b11e115
|
flags.ValidValueOrExit and os.Exit on Help
|
2026-01-18 20:17:40 -08:00 |
|
|
|
0d32446986
|
flags : can check for both Flag types because the value.FieldByName().Type() can be printed
|
2026-01-18 18:29:34 -08:00 |
|
|
|
1fed129838
|
flags : Help outputs a positional spec as well
|
2026-01-18 15:38:16 -08:00 |
|
|
|
a976dfd753
|
sort : flags
|
2026-01-18 15:24:23 -08:00 |
|
|
|
f23a98fb5d
|
flags rewrite : just well defined structs and a clear switch block
|
2026-01-18 09:03:27 -08:00 |
|
|
|
f483e08105
|
flags pkg : but im not convinced this is right
|
2026-01-17 20:21:37 -08:00 |
|
|
|
8bd0da003e
|
dirs for each subcmd
|
2026-01-17 20:06:55 -08:00 |
|