Тёмный
No video :(

justforfunc #32: CLI tools with Cobra 

justforfunc: Programming in Go
Подписаться 40 тыс.
Просмотров 35 тыс.
50% 1

By popular demand it was time to talk about Cobra.
Cobra is both a library and a tool that helps you write CLI applications in Go.
Today we simply migrate our previous todo gRPC client to Cobra.
References:
- Cobra: github.com/spf...
- Source Code: github.com/cam...

Опубликовано:

 

25 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 55   
@DeeptimanPattnaik1991
@DeeptimanPattnaik1991 Год назад
I stands for "Interactive" in CLI, You are awesome😀
@arangogutierrez
@arangogutierrez 6 лет назад
+1 for a Cobra 2.0 episode!!! also +1 for a gRPC testing episode!!!
@RichM1967
@RichM1967 6 лет назад
Thank you!! I worked for hours trying to get my original script to be a 'Cobra' enabled script... Then I got 15 min in to your video and you showed EXACTLY what I was missing. Thanks!!
@ankitagarwal655
@ankitagarwal655 6 лет назад
You are just awesome. Always love your walkthrough.
@cooldude3010
@cooldude3010 6 лет назад
haha please make fun of blockchain people more often! great episode btw
@yzhang2008
@yzhang2008 4 года назад
Your babababa scared me for only half second :-)
@rushoo4051
@rushoo4051 5 лет назад
You really did me a favor when I was new to golang, grpc, microservices...Thanks a lot!
@misterikkit
@misterikkit 6 лет назад
Does nobody pronounce it like "cube control"?
@Alexyslozada
@Alexyslozada 6 лет назад
Muchas gracias. CLI significa: Command Line Interface.
@tkiraly
@tkiraly 6 лет назад
Thanks for the video! Following it up with Viper would be nice!
@Kozical
@Kozical 6 лет назад
I usually pronounce ctl as control. Interpreter/Interface are the most common terms I've heard. +1 for TDD and gRPC
@robprentiss420
@robprentiss420 6 лет назад
Has anybody told you that you’re using that microphone incorrectly? It’s a front address microphone, so you need to point the front of it (blue logo, mute button, volume knob) at your mouth. If you do that, and set it to cardioid, your sound will be much better.
@ConsultSebastian
@ConsultSebastian 6 лет назад
Thanks for this comment. For the last episodes I thougt, the sound was supposed to be better with this mic. @Francesc Thanks for the efforts you put into this channel. Please try to turn the mic.
@robprentiss420
@robprentiss420 6 лет назад
Yeah, the last few episodes have bugged me because of this. I thought for sure somebody had told him, but no change. Not trying to be a jerk about it @campoy, just hoping to help.
@NoCPU
@NoCPU 6 лет назад
This was great. It helped me with the issue of needing to pass in a client. I was closing over a client and returning a compliant fn in my implementation
@sebastianthomsen
@sebastianthomsen 6 лет назад
I think it would be awesome to have an episode on how to handle event sourcing with go :) Also looking into dgraph these days, interesting graph db project running on go.
@kulixgaming4966
@kulixgaming4966 6 лет назад
Hey Francesc, I really like your videos, presentations on conferences and this last episode is also great one. I have suggestion for some of the episodes that will really help a lot IMHO, since all of the episodes you did lately, are somehow related to microservices, one way or another (golang, proto/grpc, cli, kube8, ...). The biggest question today in micro-service world is how to do proper DB migrations with that stack (golang, proto, mysql, gcloud, kube8, ...) ? I am not sure if libraries as matters/migrate, gh-ost (this one looks great so far but not for google cloud :( ), goose, sql-migrate, ... are good enough for production (some of them are definitely not because of issues with revert on migration failure. Any reference, books, tools, or just a small example would be really helpful. Thanks
@hmuehlburger
@hmuehlburger 6 лет назад
The I stands for 'Interface' in CLI. :-) One question: Could you make an episode on your workflow for making these awesome episodes? What about an episode on best practices for implementing database access in Go?
@DarthPar8637
@DarthPar8637 4 года назад
LOL that blockchain hit was jokes. Great video, much thanks!
@musale2277
@musale2277 6 лет назад
Haha, that was some shade on the blockchain gang though 😂. I like the content you've shared on Cobra; I've not had much to do with writing CLI tools but now I'm interested in exploring Cobra. Interface... ← where are you headed with this?
@felixbertoni
@felixbertoni 5 лет назад
"todo is a blockchain powered task manager" "Of course this is false, but most of people that say they are working on blockchain, they also lying" OMG i was waiting for this joke since even before blockchain existed x)
@brookwc
@brookwc 3 года назад
Hi I like your zsh scheme a lot. Would you share which one you're using?
@geoxxo
@geoxxo 6 лет назад
Great video! Maybe for the future it would be useful to add an episode in which you show subcommands for the "main" commands in the apps that use cobra?
@KeithPeters
@KeithPeters 4 года назад
super helpful
@robertoferrer535
@robertoferrer535 6 лет назад
Brutal Francesc, cada capítol que passa es millor i mes interessant, +1 per fer un altra de COBRA
@timhxf1
@timhxf1 6 лет назад
Hi, thanks for this nice episode. can you do another one on package management on Go?
@jxchtajxbt53
@jxchtajxbt53 2 года назад
In the words of Billy Crystal: You look marvelous darling.
@easternsunking255
@easternsunking255 6 лет назад
Great episode ,could you make a episode about the different bwtween the etcd and consul,
@yingliu679
@yingliu679 4 года назад
love this video
@PanosGeorgiadis
@PanosGeorgiadis 6 лет назад
Great video, Cobra rocks! Make more video with Cobra if you like :) One question though: why kube-C-T-L is wrong pronunciation?
@j50313j50313
@j50313j50313 3 года назад
15:36 "I am learning Chinese!"
@slicken
@slicken 6 лет назад
will Scource{d} going to have an ICO ?
@maikhabichvergessen627
@maikhabichvergessen627 6 лет назад
Greate Video ! Thanks for this !!
@integrii
@integrii 6 лет назад
I didn't like the package layout requirements of cobra, so I made flaggy. github.com/integrii/flaggy
@zulhilmizainudin
@zulhilmizainudin 4 года назад
Coding starts at 3:48. You're welcome.
@RyanKearney0
@RyanKearney0 6 лет назад
I've been saying kubectl wrong! Thanks for the video!
@khoiracle
@khoiracle 6 лет назад
thank you
@Jaydeeofficial
@Jaydeeofficial 6 лет назад
Really enjoyed watching this video. would like to become a patreon. keep up the good work buddy
@tadeubernacchi3360
@tadeubernacchi3360 3 года назад
Nice video, quick question, before I run go install I have to cp all my files that are in cmd directory to the cmd directory in $GOPATH, does anyone know why? Thanks in advanced!
@pavelerokhin1512
@pavelerokhin1512 4 года назад
make another episode on cobra please!
@justinkim7202
@justinkim7202 4 года назад
6:53 had a good laugh here haha
@Gonzihh
@Gonzihh 6 лет назад
interface?
@jasontruter7239
@jasontruter7239 3 года назад
Great tutorial, however I don't agree on the global variables and "using directly". I'd rather inject the dependencies...
@tonynelson5229
@tonynelson5229 6 лет назад
My old brain swapped out Corbra with CORBA, and I was expecting a completely different video
@JustForFunc
@JustForFunc 6 лет назад
You'll be shocked soon ...
@sebastienfriess
@sebastienfriess 6 лет назад
Great episode, I must admit the framework style of COBRA and the constraints it brings made me using urfave/cli instead github.com/urfave/cli Any benefits to use COBRA over URFAVE ?
@omgItsGreg
@omgItsGreg 6 лет назад
Are your dotfiles available anywhere? Your prompt looks amazing.
@robertoferrer535
@robertoferrer535 6 лет назад
I think that is only zsh shell with oh-my-zsh with default theme and some plugins. And of course using iTerm(i guess)
@jeffawang
@jeffawang 6 лет назад
It's the built-in terminal of VS Code, the (electron-based) IDE he uses in all of the series.
@omgItsGreg
@omgItsGreg 6 лет назад
jeffawang I know that, but it still uses his .bashrc/.zshrc config.
@jeffawang
@jeffawang 6 лет назад
Oh yeah, I was responding to Roberto's iTerm comment. More precisely, he appears to be using zsh with oh-my-zsh, in VS Code's terminal emulator. RE your original question, I don't think his dotfiles are publicly available right now.
@oliverbutterfield9844
@oliverbutterfield9844 6 лет назад
Kube-c-t-l 4 life
@sadhasivam
@sadhasivam 6 лет назад
Command Line Interface ( CLI )
@ryutenchi
@ryutenchi 6 лет назад
interface...
@mhosseintaher
@mhosseintaher 3 года назад
big size of you. big font. made it hard to concentrate on the content. fix it next time.
Далее
justforfunc #31: gRPC Basics
34:08
Просмотров 42 тыс.
justforfunc #30: The Basics of Protocol Buffers
28:31
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11
This is Why You NEED to Use This Golang CLI Framework
15:22
justforfunc #9: The Context Package
36:27
Просмотров 140 тыс.
justforfunc #37: sync.Pool from the pool
27:11
Просмотров 17 тыс.
Harder Drive: Hard drives we didn't want or need
36:47
How to write beautiful Golang CLI
30:21
Просмотров 47 тыс.