Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

hmm I recently just finish making a CLT with cobra and it wasn't too bad. Granted it's extremely basic but I like it for my use case (cloning all the repos in an org):

https://github.com/shimman-dev/piscator

What did you find complicated about it? What I struggle with is creating man pages automatically, although I did just find where in the repo this is explained.

subcommands does look neat tho, I'll likely use it for another tool I have in mind.

One thing I did not realize is that cobra and charmbracelet/bubbletea are not compatible. It may be my inexperience in making CLTs vs TUIs but I was disappointed I could use say the loading spinner from bubbles easily in my tool (opted for briandowns/spinner instead).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: