Commit graph

  • 8f574fffd1 mirror notice master bth 2026-09-09 13:33:43 -07:00
  • cfba0e32be mirror notice bth 2026-09-08 14:34:47 -07:00
  • eb6b019e74 git.bth.moi/bth/um bth 2026-09-06 16:55:46 -07:00
  • 3477d8f192 module rename bth 2026-09-06 16:52:20 -07:00
  • c32521b94b next : FILE_REGEXP : allow midfix dots bth 2026-08-27 10:28:31 -07:00
  • cb0e0b4d6a e bth 2026-08-26 13:33:58 -07:00
  • a75b348b73 no .txt bth 2026-08-26 13:18:11 -07:00
  • d4ba801115 README.md : move most of it here bth 2026-08-26 13:15:52 -07:00
  • ae23009c60 next : writeHeader directly : no more hook into um.el bth 2026-08-26 12:33:11 -07:00
  • b81d6f906e next : um next calls (um--header) and only prints the filename for piping : no more auto open bth 2026-08-13 11:50:38 -07:00
  • b4b05e7994 next : send filename to stdout bth 2026-08-13 09:37:03 -07:00
  • 5aac37f8a8 Glob as variant of Arg Flag type : accepts multiple files, as shell-expanded. use in um sort and um cat bth 2026-07-15 17:20:09 -07:00
  • 65ed68460f cat --strip-file-links : handle lists of filenames bth 2026-07-15 13:52:19 -07:00
  • dcbfa03251 cat : --strip-file-links bth 2026-07-15 13:40:41 -07:00
  • 73cc9389df cat : add a leading hr block bth 2026-07-15 12:52:00 -07:00
  • c7961b7555 tag : simplify single tag handling bth 2026-06-08 20:13:20 -07:00
  • 762ced6734 tag : simplify nil handling bth 2026-06-08 20:09:12 -07:00
  • bd86e90174 handle OR'd tags where the first tag matches nothing : assignment to nil map panic bth 2026-06-08 15:03:10 -07:00
  • 185393d62d move elisp into main dir for the sake of package.el bth 2026-05-19 10:58:54 -07:00
  • f710377826 explicit help always exit 0 bth 2026-01-30 09:54:25 -08:00
  • db3f01e142 test expandOpts bth 2026-01-29 12:00:19 -08:00
  • ec5eff4150 flags : ParseError return from expandOpts and Help for reflection guards bth 2026-01-29 11:44:53 -08:00
  • 3f5d73bf3e help : errors.As : assign to the HelpError constructed at callsite bth 2026-01-29 11:17:52 -08:00
  • 8fe659a171 help : HelpError holds cmd.Subcommand and summary : NewHelpError constructor bth 2026-01-29 11:09:55 -08:00
  • d4015598be flags : return HelpError and print at the callsite bth 2026-01-29 10:23:11 -08:00
  • b9809e332b Merge branch 'flags' bth 2026-01-28 21:43:54 -08:00
  • 8e7daebb18 A flags_test.go bth 2026-01-28 21:41:22 -08:00
  • af3fb9f552 parseArgsInternal bth 2026-01-28 20:28:11 -08:00
  • 012110a369 flags : better method separation bth 2026-01-28 18:15:51 -08:00
  • 0fba550f1e next : better error bth 2026-01-28 15:55:46 -08:00
  • 78d33ae62d next : FILE_REGEXP should not assume ascii nor even unicode letters, just anything not a . bth 2026-01-28 13:22:36 -08:00
  • a243d3c125 flags : handle String validation : works but getting messier all the time bth 2026-01-26 20:35:58 -08:00
  • 7dfad8c22e flags : IsHelp method bth 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 bth 2026-01-26 18:48:55 -08:00
  • 66880a32d9 zk bth 2026-01-23 09:48:21 -08:00
  • 03a08e8b42 tag : include newline in Grow bth 2026-01-22 19:29:27 -08:00
  • a83b7c03ad tag : fix tests until i care to upgrade bth 2026-01-22 13:36:41 -08:00
  • b903fe46a4 mv : mv to new descriptor while updating header bth 2026-01-22 12:15:40 -08:00
  • 14d124b8a6 cat : --keep-header and --keep-title : decapitate by default bth 2026-01-21 21:20:06 -08:00
  • 0642c15998 doc bth 2026-01-21 18:11:41 -08:00
  • 036e60ea64 cat : um help bth 2026-01-21 14:18:21 -08:00
  • a3ea15e3eb cat : --base bth 2026-01-21 14:11:30 -08:00
  • 5c1aaeeefc cat : TrimSuffix always bth 2026-01-21 14:04:46 -08:00
  • 63b27faf29 cat : back to the simplicity of strings.Join bth 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 bth 2026-01-21 13:06:18 -08:00
  • 83ada09fb4 cat : preallocate by os.Stat() on every file first bth 2026-01-21 12:51:42 -08:00
  • 83c52e3e70 cat : first naive version bth 2026-01-21 12:43:12 -08:00
  • 7e6f8dd36c pipe : FileListSplit and better errors bth 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 bth 2026-01-21 11:44:14 -08:00
  • 924024fa73 tag summary bth 2026-01-21 09:26:52 -08:00
  • f645e18b5b flags.Help takes a summary string bth 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 bth 2026-01-20 19:55:03 -08:00
  • b69f3aabd0 sort : more consistent use of common libs bth 2026-01-20 19:42:00 -08:00
  • 18eab3cb85 last : filepath.Glob instead of exec.Command(ls) bth 2026-01-20 19:32:55 -08:00
  • d35b26b754 tag : import tests from gag bth 2026-01-20 14:57:11 -08:00
  • fb25a2bb43 tag : use IsSet bth 2026-01-20 14:51:51 -08:00
  • 744774878f tag : one call bth 2026-01-20 14:49:54 -08:00
  • bab61c31a3 tag : break apart into smaller files of related function bth 2026-01-20 14:46:04 -08:00
  • 211bf38758 fix next const cmd bth 2026-01-20 14:31:11 -08:00
  • 2505bd4cf9 tag : private methods : get used to camelCase bth 2026-01-20 14:13:10 -08:00
  • 41b01c172b tag : pipe stdin bth 2026-01-20 14:06:28 -08:00
  • f3fed60ff8 tag : dump from https://github.com/brtholomy/gag bth 2026-01-20 14:05:46 -08:00
  • c434005d39 cmd pkg for Subcommand type, use everywhere bth 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 bth 2026-01-20 13:10:47 -08:00
  • 0ff9e6d9a3 next : consistent default case handling across subcmds bth 2026-01-19 18:25:06 -08:00
  • b5075786c6 last and sort should pipe to stdout bth 2026-01-19 12:29:39 -08:00
  • 59b0c173aa tag : --verbose bth 2026-01-19 11:48:10 -08:00
  • 03d38b4ba7 flags.ValidateIncrementFetchOrExit to handle value expecting Flag[string] bth 2026-01-19 11:37:01 -08:00
  • c719dc934f tag : skip value arg in parseArgs bth 2026-01-19 11:22:34 -08:00
  • ba46937c3c sort : port over full code, fix flag value iteration skipping in parseArgs bth 2026-01-19 11:20:37 -08:00
  • d404b3d096 root cmd gets help subcmd bth 2026-01-19 09:34:46 -08:00
  • 5b930f4526 more error strings bth 2026-01-19 09:21:41 -08:00
  • c00904a004 log.Fatal and more consistent error strings bth 2026-01-19 09:17:49 -08:00
  • 9ae9c8e5fd last : handle ls stderr bth 2026-01-19 08:42:27 -08:00
  • bd05d482e2 docs bth 2026-01-19 08:06:04 -08:00
  • 68e2d0ac1d next : no dead code bth 2026-01-19 07:57:47 -08:00
  • 961bb84e29 next : emacsNext with emacsclient call bth 2026-01-18 23:58:34 -08:00
  • dbe1af4710 next : dont need to parse desc from last bth 2026-01-18 21:43:11 -08:00
  • af2f2032f1 next, last : glob and regexp bth 2026-01-18 21:38:18 -08:00
  • c19b11e115 flags.ValidValueOrExit and os.Exit on Help bth 2026-01-18 20:17:40 -08:00
  • 9932a84286 flags : Arg IsSet bth 2026-01-18 19:01:13 -08:00
  • 0d32446986 flags : can check for both Flag types because the value.FieldByName().Type() can be printed bth 2026-01-18 18:29:34 -08:00
  • 869ca3c290 docs and private funcs bth 2026-01-18 18:19:56 -08:00
  • 7e3529aaee flags : generic Flag validity check using a type switch bth 2026-01-18 18:04:01 -08:00
  • 1fed129838 flags : Help outputs a positional spec as well bth 2026-01-18 15:36:12 -08:00
  • a976dfd753 sort : flags bth 2026-01-18 15:23:55 -08:00
  • 6a5304da2c tag : one blank switch block bth 2026-01-18 15:11:28 -08:00
  • c7c48eab43 flags : tabwriter output bth 2026-01-18 15:03:31 -08:00
  • 0422b4a146 flags : Help string using reflection iteration over fields bth 2026-01-18 14:48:58 -08:00
  • 519d6cf263 next : keep tags as single flags.Arg : handle comma Split later, ParseArgs does just that bth 2026-01-18 10:21:01 -08:00
  • 109591f938 next : use new flags logic, tags as slice of Arg bth 2026-01-18 10:17:24 -08:00
  • d89b48adc3 flags : generic string|bool value field bth 2026-01-18 09:47:31 -08:00
  • f23a98fb5d flags rewrite : just well defined structs and a clear switch block bth 2026-01-18 09:03:27 -08:00
  • 123eabca54 insane reflection premature optimization bth 2026-01-17 22:27:09 -08:00
  • 90b5def36a first stab at reflection as a solution to the flags issue bth 2026-01-17 21:12:27 -08:00
  • f483e08105 flags pkg : but im not convinced this is right bth 2026-01-17 20:21:37 -08:00
  • 8bd0da003e dirs for each subcmd bth 2026-01-17 20:06:55 -08:00
  • a05ebf985a init go rewrite bth 2026-01-17 13:00:00 -08:00
  • cb97f0cad4 delete go cli bth 2024-01-13 11:51:01 -08:00
  • 420702c12f try a go mod bth 2024-01-13 11:21:43 -08:00