LabStore - Part 5 - Building an Object Store in Go: CLI - Command Line Interface
Автор: Data Lab Tech
Загружено: 2026-01-27
Просмотров: 46
Описание:
Learn how to build a CLI for your monorepo, with Cobra and the Charm Stack. With this video, you will easily learn the basics—and beyond—on how to use 'cobra' for building a CLI, from persistent pre runs that propagate, to command annotations for custom control, or handling your own errors manually. We'll also teach you how to manage multiple services, on separate ports, within a single 'serve' command, how to manage client-side credentials easily, and how to design a basic TUI, including color palettes and styling with 'lipgloss', as well as custom components with 'bubbletea'. Finally, you'll learn how easy it is to embed a static site into a Go binary so that you can serve your own web UI. One binary to rule them all!
Embark in this series with IllumiKnow Labs, and let's see where this journey takes us. Hopefully you'll learn a lot along the way, and don't forget to comment below, if you have requests, suggestions, or feedback!
📺 Watch the full LabStore series here ► • LabStore
► In part 1, we present LabStore's backend as a Go project, and the S3 requests we prioritize.
► In part 2, we delve into SigV4, the authorization signature algorithm used by S3 to authenticate requests and individual chunks.
► In part 3, we test alternative open source solutions and setup a benchmark for these solutions, comparing them with LabStore.
► In part 4, we cover the implementation and integration of IAM (Identity and Access Management).
► In part 5, we delve into designing a command line interface to manage LabStore.
► In part 6, we explore TUI development in Go, building an S3 client and file explorer for the CLI.
"Go Gopher" by Renée French is licensed under CC BY 4.0
🔗 Resources:
💻 GitHub repo: https://github.com/IllumiKnowLabs/lab...
📝 Blog post: https://datalabtechtv.com/posts/labst...
🐹 Go: https://go.dev/
📚 Cobra: https://cobra.dev/
📚 Charm Stack: https://charm.land/libs/
📚 lipgloss: https://github.com/charmbracelet/lipg...
📚 bubbletea: https://github.com/charmbracelet/bubb...
🔔 Subscribe for more deep dives data science, data engineering, and all things data!
☁️ Follow the channel on Bluesky: https://bsky.app/profile/datalabtecht...
🎧 Join our community's Discord: / discord
👽 Join our subreddit: / datalabtechtv
💻 Check out the channel's GitHub: https://github.com/DataLabTechTV
🌐 Visit our website for blog posts: https://datalabtechtv.com
#softwareengineering #s3 #iam #aws #client #cli #tui #golang #go
00:00:00 Intro
00:00:52 Changes to the Codebase
00:08:36 CLI with Cobra
00:20:51 Multiple HTTP Services
00:26:36 Client & Credentials
00:33:26 TUI Styling & Components
00:52:07 Serving Embedded Assets
00:54:47 Outro
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: