Build a Terminal Wizard in Go (Bubble Tea Tutorial)

Опубликовано: 16 Октябрь 2024
на канале: Charm CLI
36,378
821

In the time since this video was originally released, we launched Huh which allows you to easily create forms in your terminal. I would highly recommend checking that out if you're hoping to use something like this in production https://github.com/charmbracelet/huh :) Happy coding!!

https://github.com/charmbracelet/wiza...

This is the simplest I could think to make it. We will consider building more functionality on top of it in a future video if the nerds of YouTube would find that helpful 😏 Hope you enjoy building this Bubble Tea wizard!

Connect with us:
Discord: https://charm.sh/chat
Twitter:   / charmcli  
Instagram:   / charm_cli  
https://github.com/charmbracelet/bubb...

#golang #tutorial #commandline

Chapters:
0:38 create tea.Model skeleton
1:52 print debugging with Bubble Tea
4:15 customize the model
4:55 handle window sizes across questions
7:09 add textinput and layouts
8:37 add styling
12:54 interactivity
15:43 add question struct
18:23 print to a file
19:56 create an input interface
24:45 use the input interface
30:52 find Blur() error
36:47 end