Commit graph um/tag/tag.go
Author SHA1 Message Date
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
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
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
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
2505bd4cf9 tag : private methods : get used to camelCase 2026-01-20 14:13:10 -08:00
bth
41b01c172b tag : pipe stdin 2026-01-20 14:06:28 -08:00
bth
f3fed60ff8 tag : dump from https://github.com/brtholomy/gag 2026-01-20 14:05:46 -08:00
bth
c434005d39 cmd pkg for Subcommand type, use everywhere 2026-01-20 13:30:53 -08:00
bth
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
bth
59b0c173aa tag : --verbose 2026-01-19 11:48:10 -08:00
bth
03d38b4ba7 flags.ValidateIncrementFetchOrExit to handle value expecting Flag[string] 2026-01-19 11:37:01 -08:00
bth
c719dc934f tag : skip value arg in parseArgs 2026-01-19 11:22:34 -08:00
bth
5b930f4526 more error strings 2026-01-19 09:21:41 -08:00
bth
c00904a004 log.Fatal and more consistent error strings 2026-01-19 09:17:49 -08:00
bth
c19b11e115 flags.ValidValueOrExit and os.Exit on Help 2026-01-18 20:17:40 -08:00
bth
0d32446986 flags : can check for both Flag types because the value.FieldByName().Type() can be printed 2026-01-18 18:29:34 -08:00
bth
869ca3c290 docs and private funcs 2026-01-18 18:19:56 -08:00
bth
6a5304da2c tag : one blank switch block 2026-01-18 15:11:28 -08:00
bth
0422b4a146 flags : Help string using reflection iteration over fields 2026-01-18 14:48:58 -08:00
bth
109591f938 next : use new flags logic, tags as slice of Arg 2026-01-18 10:17:24 -08:00
bth
d89b48adc3 flags : generic string|bool value field 2026-01-18 09:47:31 -08:00
bth
f23a98fb5d flags rewrite : just well defined structs and a clear switch block 2026-01-18 09:03:27 -08:00
bth
123eabca54 insane reflection premature optimization 2026-01-17 22:27:09 -08:00
bth
90b5def36a first stab at reflection as a solution to the flags issue 2026-01-17 21:12:27 -08:00
bth
f483e08105 flags pkg : but im not convinced this is right 2026-01-17 20:21:37 -08:00
bth
8bd0da003e dirs for each subcmd 2026-01-17 20:06:55 -08:00