Build a Terminal Wizard in Go (Bubble Tea Tutorial)

preview_player
Показать описание


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:

#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
Рекомендации по теме
Комментарии
Автор

I've been creating Go CLI apps for a few years now, but bubbletea is new to me. This has been very helpful in getting started. Thank you.

soorbus
Автор

Great tutorial! Watched it a couple times to ensure I understood each step and then did a build along. "And I left my CAPSLOCK on ..." should be a t-shirt.

eugenethompson
Автор

Just stumbled upon the Charm CLI tools today, super cool! I love the look and the feels of it all

empathy_monster
Автор

This is officially on my list for when I learn Golang.

AustinMarlar
Автор

awesome for a go-newbie like myself thanks to you i've been able to get started with tea.

tomkoefod
Автор

I really enjoy watching and listening to your tutorials because your voice is just so soothing for me- Could listen for hours :D

devKazuto
Автор

Thanks
Great tutorial - I will try it out 👍🏼👍🏼💪

PierreMalan
Автор

Thank you very much for all your help!!! And a quick question, what IDE are you using to program?

AdrianRojas
Автор

Great video, getting into Go and having something like this is awesome! I did have one question though, I followed this through but whenever I run the code the side (vertical) borders all seem to be indented, so the box doesn't fully align all around.

I've gone over the code line for line from what is in this video and cannot see what's happening to cause it :/ Do you have any ideas?

Kyawn
Автор

it would be cool if there was some more discussion on how to compose an app with potentially dozens of models. the tuts here are fine but they don't really add up to a usable app. It seems like everything is so open ended that without a clear design pattern on the thinking leads to a lot of spaghetti code in the View() of the top-most model.

someguy
Автор

You have made React for the terminal. I have strong confused feeling about that...

MightyMoud
Автор

Cool video, thanks for posting. Can I ask, what are some good use-cases for Wizards on the CLI?

ross-spencer
Автор

Favorite quote, “yes” . . . Babylon 5 fan?

awksedgreep
Автор

How do you "realtime modify (simplyfy to >)" PS1 on previous lines in the shell? 🙂 I have been looking for that everywhere - even chatGPT doesn't know about it !

martinmaartensson
Автор

I'm getting some weird behaviour that I can't really seem to figure out... After the first 2 steps (e.g., when going from the second textinput to the textarea), my TUI hangs for a few moments and no keyboard input is accepted and then after about 10s the last question with the textarea shows up filled with weird escaped characters? Something like: "11;rgb:2323/2121/3636\ "

Anybody know what might be going on here? I'm at a total loss

tenecursum
Автор

Is it still true that a lot of the bubbles don't implement the tea model interface?

RobDuarte
Автор

Have you ever ran into an issue with multiple forms where the first keystroke is not registered?

ezrablack
Автор

There is a textarea but no way to enter multiple lines, when you press ENTER it exits and prints out the results. This is "expected" given the code, but is NOT expected behavior for textarea.

jarrodroberson
Автор

quisiera saber como customizo asi su terminal O.o

ABC-Devs
Автор

And now this obsolete because of form?

mattcargile