Hacker GitHub

← All repos

urfave/cli

View on GitHub ↗ ★ 24,308 Go

A declarative, simple, fast, and fun package for building command line tools in Go

20 mentions on Hacker News by 19 people: 3 stories, 17 comments · first 2013-07-22 · latest 2025-03-23

Mentions per year 20 mentions · busiest year 2016 (3)
20082026
  1. Interesting. I used https://github.com/urfave/cli in the past and was pretty happy with it. However sometimes it's good to try something New :-)
  2. …a much better experience with https://github.com/alecthomas/kong , and I've heard good things about https://github.com/urfave/cli , so I would recommend those over Cobra.
  3. I use https://pkg.go.dev/github.com/urfave/cli/v3 in my Go programs, and it does enough validation that this has never been a problem in practice, especially when paired with a simple config scheme (see my other comment).
    comment by omginternets · 2023-09-13 · in What is wrong with TOML? (2019)
  4. I like https://github.com/urfave/cli
    comment by icholy · 2023-05-23 · in How to start a Go project in 2023
  5. …$GOROOT) /home/user/go/src/github.com/sirupsen/logrus (from $GOPATH) main.go:10:2: cannot find package "github.com/urfave/cli/v2" in any of: /usr/lib/go-1.10/src/github.com/urfave/cli/v2 (from $GOROOT)…
  6. …This can be easily added to CI to avoid having to maintain a separate man page. [1]: https://pkg.go.dev/github.com/urfave/cli/v2#App.ToManWithSec...
  7. ▲ 2
    Ask HN: What libraries does go have for building interactive shells?
    story by gjvc · 2022-01-16 · 2 comments
  8. …quite a lot of rust as well as go). That's my whole point. It should be compared to something like https://github.com/urfave/cli . That would be a fairer comparison.
    comment by alain_gilbert · 2021-12-16 · in Go 1.18 Beta 1 is available, with generics
  9. …be probably easier to have a convention of programs to output their autocompletion options similar to how github.com/urfave/cli does. https://github.com/urfave/cli/tree/master/autocomplete
  10. My Opinion: The best cli lib I found: https://github.com/urfave/cli For deployment I recommend: https://github.com/goreleaser/goreleaser During development I recommend: https://github.com/golangci/golangci-lint and…
  11. ▲ 8
    Fast Way to Build Go CLI Apps
    story by arparthasarathi · 2019-11-27 · 0 comments
  12. …of https://github.com/spf13/cobra . I would love to hear why they chose cobra over something like https://github.com/urfave/cli
    comment by SomaticPirate · 2019-11-05 · in Stripe CLI
  13. I use github.com/urfave/cli, but I almost always end up wrapping it with my own declarative framework. Gradually said framework is becoming more general purpose and suitable for general use, at which point I'll probably open source it and…
  14. …with Go, so if someone on my team wasn't on the same OS as me I could support them as well [1] https://github.com/urfave/cli
  15. ▲ 2
    A small package for building command line apps in Go
    story by pkaeding · 2016-05-03 · 0 comments
  16. …CLI apps, this library is definitely useful if you're willing to pull in a third-party dependency: https://github.com/codegangsta/cli
  17. …a nice alternative to flag, with perks--not the least of which is beautifully formatted help text. https://github.com/codegangsta/cli
  18. …if you just need flag parsing. I've also heard good things about https://github.com/spf13/cobra and https://github.com/codegangsta/cli .
  19. …has created a library to help write CLI apps in Go [1] and gives an example of how to use it. [1] https://github.com/codegangsta/cli
    comment by eliot_sykes · 2013-11-14 · in Why I switched from Ruby to Go
  20. …having a lot of fun in Go so far and encourage anyone who hasn't given it a shot to try it out. https://github.com/codegangsta/cli