I had a similar idea a couple of months ago. Make a CLI in golang that allows me to easily open all my favorite timewaster sites at the start of the work day. But it ended up in the "Started, but never looked at again" pile. Maybe I'll have another look at it on the weekend.
Diving into Go by building a CLI application
11–20 of 124 posts
Re: Diving into Go by building a CLI application
#12Shameless promotion:
Re: Diving into Go by building a CLI application
#13I had a similar idea a couple of months ago. Make a CLI in golang that allows me to easily open all my favorite timewaster sites at the start of the work day. But it ended up in the "Started, but never looked at again" pile. Maybe I'll have another look at it on the weekend.
In case you don’t get around to writing that golang code. https://unix.stackexchange.com/questions/17659/opening-multi...
cat sites-list | xargs -n1 firefox --new-tab
Re: Diving into Go by building a CLI application
#14Terminal is simultaneously powerful and painful tool. I know a guy that refuses to use anything but CLI and suffers a lot. But most basic apps can be written it in like those BIOS menus from a 2005 dell computer.
Re: Diving into Go by building a CLI application
#15Is it possible to display images in terminal? Terminal is simultaneously powerful and painful tool. I know a guy that refuses to use anything but CLI and suffers a lot. But most basic apps can be written it in like those BIOS menus from a 2005 dell computer.
Re: Diving into Go by building a CLI application
#16Re: Diving into Go by building a CLI application
#17Since everyone else is throwing out recommendations I personally think https://github.com/spf13/cobra is the best CLI templating system, especially because of how well it pairs with https://github.com/spf13/viper . Large projects like Hugo and Kubernetes have used Cobra to build their CLI tools, and it's fairly light as well even if you need simpler usage. We use it at my workplace simply for wrapping our microservic…
Re: Diving into Go by building a CLI application
#18Since everyone else is throwing out recommendations I personally think https://github.com/spf13/cobra is the best CLI templating system, especially because of how well it pairs with https://github.com/spf13/viper . Large projects like Hugo and Kubernetes have used Cobra to build their CLI tools, and it's fairly light as well even if you need simpler usage. We use it at my workplace simply for wrapping our microservic…
Great stuff! Does anything like Cobra exist for Java?
2: https://github.com/airlift/airline
Bonus: picocli lets you create native images using Graal, so you can really build native cli executable using Java.
Re: Diving into Go by building a CLI application
#19Small: https://imgs.xkcd.com/comics/confidence_interval.png
Big: https://imgs.xkcd.com/comics/confidence_interval_2x.png
Though not for older ones.
Re: Diving into Go by building a CLI application
#20I definitely prefer it to cobra