Hacker GitHub

← All repos

bbkane/warg

View on GitHub ↗ ★ 56 Go

Declarative CLI framework

12 mentions on Hacker News by 1 person: 0 stories, 12 comments · first 2022-05-07 · latest 2026-04-26

Mentions per year 12 mentions · busiest year 2025 (4)
20082026
  1. …a "blog" explaining WHY I made the changes and that's really been fun to look back and read too 0: https://github.com/bbkane/warg/blob/master/CHANGELOG.md
  2. …(I already have tab completion for shells, why not make an editor plugin if it's this easy ..) 0: https://github.com/bbkane/warg
  3. I was doing this and used it for a year in https://github.com/bbkane/warg/ , but ripped it out since Go auto-casts underlying types to derived types in function calls: Type userID int64 func Work(u userID) {...} Work(1) // Go accepts this…
    comment by bbkane · 2025-07-24 · in Use Your Type System
  4. …I've wanted to do TUI form generation for my own CLI framework since 2023 ( https://github.com/bbkane/warg/issues/71 ), but I still haven't gotten around to it
    comment by bbkane · 2025-06-19 · in Fang, the CLI Starter Kit
  5. I'm adding zsh shell completion to my CLI framework ( https://github.com/bbkane/warg/tree/bbkane/the-flattening-2-... )! I'm writing bigger CLIs with it now and I want to tab through their subcommands and flags, as well as allow…
  6. …to allow users to fill CLI flags from config files, and it'll replace my crappy homegrown version ( https://github.com/bbkane/warg/blob/740663eeeb5e87c9225fb627... )
  7. …as everything works exactly the way I expect (and if it doesn't I change the library). Code at https://github.com/bbkane/warg if you want to compare it to your library :)
  8. …verbose than I'd like, but it's quite useful for figuring out how a flag got its current value [0] https://github.com/bbkane/warg [1] https://github.com/bbkane/shovel
  9. …tree additions and studying the HTTP interface extension to see if I can replicate the pattern for https://github.com/bbkane/warg values. Id like to be able to have value-specific output for different types of --help , even ones not in warg
  10. …uses them to declaratively build CLI apps with arbitrarily nested subcommands. Some examples at https://github.com/bbkane/warg/tree/master/examples
    comment by bbkane · 2022-05-25 · in Go: Functional Options Are Slow
  11. …this problem, especially because my baby arrived early so my time is now much more limited :D [1] - https://github.com/bbkane/warg/
  12. …I like this convention so much I stole it for my homemade Golang CLI parsing library https://github.com/bbkane/warg/ .
    comment by bbkane · 2022-05-07 · in Unix command line conventions over time