🦀 Rust TUI App to display external command | Cursive Crate

  Рет қаралды 1,656

Bek Brace

Bek Brace

Күн бұрын

💬 Big shout-out to ‪@JavierHarford‬ for the awesome suggestion!
Keep your requests coming!
Hey, what’s going on, everyone? This is Bek Brace from BackBrace, and today we’re diving into an exciting Rust project! 🎉
In this tutorial, we’ll explore how to build a simple Text User Interface (TUI) app using the Cursive library. We’ll pipe in external command output (in this case, the dir command for Windows) and display it right in the TUI. This is perfect for anyone looking to combine system commands with a user-friendly terminal interface.
💻 What You’ll Learn:
How to use the Cursive library in Rust to build TUI apps.
How to execute external commands using Command and capture output.
Displaying the command output in a TUI with dialogs and text views.
Make sure to like and subscribe for more Rust tutorials!
GitHub repo: github.com/Bek...
🔔 Don't forget to LIKE, SHARE, and SUBSCRIBE.
▶️ You Can Find Me On:
My Website: bekbrace.netlify.com
Second Channel: @bekbraceplus
DEV.TO blog: dev.to/bekbrace
#️⃣ Social Media:
𝕏: / bekbrace
IG: / bek_brace

Пікірлер: 14
@azharalibhutto1209
@azharalibhutto1209 3 ай бұрын
Really amazing ❤❤❤❤❤
@BekBrace
@BekBrace 3 ай бұрын
Thank you my friend
@garystroup5285
@garystroup5285 3 ай бұрын
Very cool. So I can create terminal apps that can open up files for me to CRUD the data for instance? Similar to VIM? I’m kinda getting bored of web apps and want something new. TUI or use Tauri for desktop apps might be something to explore.
@BekBrace
@BekBrace 3 ай бұрын
Thanks Gary ! Yes, you absolutely can! In fact, Rust, combined with libraries like Cursive for the TUI, allows you to create TUIs that can do much more than just executing commands. You can build full-fledged terminal apps that can open and edit files (similar to VIM or Nano) As you said you can create CRUD operations for data stored in files (like text files, JSON, or even dbs !) You can also bild menus, dialog boxes, and views to handle different aspects of file manipulation, data navigation, etc... If you have any questions, just let me know
@garystroup5285
@garystroup5285 3 ай бұрын
@@BekBrace Thanks for the feedback! It may take me some time. I come from a JavaScript background and have used Golang in my backend from time to time. Just starting out with Rust this past week. My main motivation for learning rust is because I would like to dive into embedded systems. I did take an intro to C++ back in college so Rust does not feel all that foreign to me. I will definitely continue to watch your videos and reach out if I stumble along the way.
@BekBrace
@BekBrace 3 ай бұрын
@garystroup5285 great 👍👍👍 feel free to reach out anytime - good luck, man
@iabhishek
@iabhishek 3 ай бұрын
Can we please have a neovim full tutorial from noob to mastery
@BekBrace
@BekBrace 3 ай бұрын
@@iabhishek Thank you for the suggestion, I wanted to do this actually
@iabhishek
@iabhishek 3 ай бұрын
@@BekBrace thats wonderful, also your content is top notch don't ever stop making videos thank you
@raphaelkyrdan172
@raphaelkyrdan172 2 ай бұрын
I think you know that the part when you are executing the "dir" command does not work on macos? It would be better if in your examples you showed cross platform examples. Right now the "pipe" can only show the hardcoded text but cannot really execute the commands.
@BekBrace
@BekBrace 2 ай бұрын
@@raphaelkyrdan172 I understand you're frustrated, sorry for that
@raphaelkyrdan172
@raphaelkyrdan172 2 ай бұрын
@@BekBrace no worries, I've already did macos version with AI help.
@장정태
@장정태 2 ай бұрын
I want to learn Rust.😂
@BekBrace
@BekBrace 2 ай бұрын
@@장정태 let's Goooo
Rust TUI Project | Inventory System Software [ Cursive crate ]
30:06
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
We Attempted The Impossible 😱
00:54
Topper Guild
Рет қаралды 56 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
7 (more) AWESOME Linux CLI/Terminal Apps
14:21
TechHut
Рет қаралды 121 М.
5 deadly Rust anti-patterns to avoid
13:25
Let's Get Rusty
Рет қаралды 40 М.
Dioxus vs Leptos  | Rust GUI Wars #2
21:18
Creative Coders
Рет қаралды 14 М.
Interview with Senior Rust Developer
9:46
Programmers are also human
Рет қаралды 773 М.
you need to build a RUST desktop app!!
27:21
Travis Media
Рет қаралды 344 М.
The standard library now has all you need for advanced routing in Go.
13:52
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 41 М.
Intermediate Rust Programming: Weather CLI Application
31:54
Bek Brace
Рет қаралды 7 М.
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН