Commit graph

88 commits

Author SHA1 Message Date
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
0ff9e6d9a3 next : consistent default case handling across subcmds 2026-01-19 18:25:06 -08:00
bth
b5075786c6 last and sort should pipe to stdout 2026-01-19 12:29:39 -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
ba46937c3c sort : port over full code, fix flag value iteration skipping in parseArgs 2026-01-19 11:20:37 -08:00
bth
d404b3d096 root cmd gets help subcmd 2026-01-19 09:34:46 -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
9ae9c8e5fd last : handle ls stderr 2026-01-19 08:42:27 -08:00
bth
bd05d482e2 docs 2026-01-19 08:06:04 -08:00
bth
68e2d0ac1d next : no dead code 2026-01-19 07:57:47 -08:00
bth
961bb84e29 next : emacsNext with emacsclient call 2026-01-18 23:58:34 -08:00
bth
dbe1af4710 next : dont need to parse desc from last 2026-01-18 21:47:34 -08:00
bth
af2f2032f1 next, last : glob and regexp 2026-01-18 21:38:18 -08:00
bth
c19b11e115 flags.ValidValueOrExit and os.Exit on Help 2026-01-18 20:17:40 -08:00
bth
9932a84286 flags : Arg IsSet 2026-01-18 19:01:13 -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
7e3529aaee flags : generic Flag validity check using a type switch 2026-01-18 18:04:01 -08:00
bth
1fed129838 flags : Help outputs a positional spec as well 2026-01-18 15:38:16 -08:00
bth
a976dfd753 sort : flags 2026-01-18 15:24:23 -08:00
bth
6a5304da2c tag : one blank switch block 2026-01-18 15:11:28 -08:00
bth
c7c48eab43 flags : tabwriter output 2026-01-18 15:03:31 -08:00
bth
0422b4a146 flags : Help string using reflection iteration over fields 2026-01-18 14:48:58 -08:00
bth
519d6cf263 next : keep tags as single flags.Arg : handle comma Split later, ParseArgs does just that 2026-01-18 10:21:01 -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
bth
a05ebf985a init go rewrite 2026-01-17 13:00:00 -08:00
bth
cb97f0cad4 delete go cli 2024-01-13 11:51:01 -08:00
bth
420702c12f try a go mod 2024-01-13 11:21:43 -08:00