How to write Bubbletea CLI app in golang
Intro
In my previous post I wrote about Gum which is a program that allows writing beautiful interactive shell scripts.
If you want to go beyond simple shell scripts, you can use bubbletea with lipgloss for terminal styles and layout, also utilizing bubbles. Check also other goodies on charm.sh page for yourself!
How to write Bubbletea CLI app in golang
- have an idea
- think about screen transitions, models. key bindings
- explore existing “bubbles”
- familiarize yourself with examples
- start coding
- profit!
Really, how to start?
You can start by cloning bubbletea-app-template which is a small working example app which imports bubbles and lipgloss.





 page /en/posts/2024-10-06_about_rust/code_rust_lox.png](/en/posts/2024-10-06_about_rust/code_rust_lox.png)



