Fang, the CLI Starter Kit
github.com
Fang, the CLI Starter Kit
1–10 of 34 posts
Re: Fang, the CLI Starter Kit
#2They have a TUI framework, too, among a lot of other related things. Some of their projects are Go libraries, some are a CLI tool, such as gum.
Re: Fang, the CLI Starter Kit
#3Throughout these years, I have found that cross-compiling is the most challenging part of creating a CLI. When you are building a web back-end, you control the execution environment (usually linux). For CLIs, your users could be on Linux, macOS or Windows. You need to get three x2 binaries (so a total of 6) to have a fair coverage.
I’ve tried cross, but for Windows and macOS you need licenses. There is no straightforward way to give your users Docker images and have them running in a few commands. You can compile on GitHub action machines, but that’s a very slow feedback loop. I wonder if things are better in Go land.
Re: Fang, the CLI Starter Kit
#4I just ran across "gum"[1] from charmbracelet which I intend to use! I just want to replace dialog. I came across whiptail, too, but gum seems nicer. They have a TUI framework, too, among a lot of other related things. Some of their projects are Go libraries, some are a CLI tool, such as gum. [1] https://github.com/charmbracelet/gum
Re: Fang, the CLI Starter Kit
#5Re: Fang, the CLI Starter Kit
#6Re: Fang, the CLI Starter Kit
#7I’ve been maintaining rust-starter[!] for quite sometime now. It is kind of the equivalent of fang but for Rust. It uses Clap which is the equivalent of Cobra; though I don’t think Clap has the same kind of fancy output? Throughout these years, I have found that cross-compiling is the most challenging part of creating a CLI. When you are building a web back-end, you control the execution environment (usually linux).…
(Hello from Charm! I’m one of the authors of this library.)
Re: Fang, the CLI Starter Kit
#8I’ve been maintaining rust-starter[!] for quite sometime now. It is kind of the equivalent of fang but for Rust. It uses Clap which is the equivalent of Cobra; though I don’t think Clap has the same kind of fancy output? Throughout these years, I have found that cross-compiling is the most challenging part of creating a CLI. When you are building a web back-end, you control the execution environment (usually linux).…
ETA since I just saw Christian chime in: the Goreleaser author works at Charm.sh =)
Re: Fang, the CLI Starter Kit
#9I’ve been maintaining rust-starter[!] for quite sometime now. It is kind of the equivalent of fang but for Rust. It uses Clap which is the equivalent of Cobra; though I don’t think Clap has the same kind of fancy output? Throughout these years, I have found that cross-compiling is the most challenging part of creating a CLI. When you are building a web back-end, you control the execution environment (usually linux).…
I started a similar thing, although not as feature-rich as yours. My goal was to follow CLI best practices and add all the boilerplate one needs to build a Rust CLI.