|
|
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 |
|
|
|
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 |
|
|
|
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 |
|
|
|
59b0c173aa
|
tag : --verbose
|
2026-01-19 11:48:10 -08:00 |
|
|
|
03d38b4ba7
|
flags.ValidateIncrementFetchOrExit to handle value expecting Flag[string]
|
2026-01-19 11:37:01 -08:00 |
|
|
|
c719dc934f
|
tag : skip value arg in parseArgs
|
2026-01-19 11:22:34 -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 |
|
|
|
869ca3c290
|
docs and private funcs
|
2026-01-18 18:19:56 -08:00 |
|
|
|
6a5304da2c
|
tag : one blank switch block
|
2026-01-18 15:11:28 -08:00 |
|
|
|
0422b4a146
|
flags : Help string using reflection iteration over fields
|
2026-01-18 14:48:58 -08:00 |
|
|
|
109591f938
|
next : use new flags logic, tags as slice of Arg
|
2026-01-18 10:17:24 -08:00 |
|
|
|
d89b48adc3
|
flags : generic string|bool value field
|
2026-01-18 09:47:31 -08:00 |
|
|
|
f23a98fb5d
|
flags rewrite : just well defined structs and a clear switch block
|
2026-01-18 09:03:27 -08:00 |
|
|
|
123eabca54
|
insane reflection premature optimization
|
2026-01-17 22:27:09 -08:00 |
|
|
|
90b5def36a
|
first stab at reflection as a solution to the flags issue
|
2026-01-17 21:12: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 |
|