I love how you explain things so clearly it makes your content basically language agnostic. I have no understanding of javascript but I could totally do this in python 🥰
@Guergeiro Жыл бұрын
It's really powerful to just use a tool you're comfortable with to do cli scripts. I sometimes find myself losing my hair over some bash weird stuff and that's the trigger to move to either JS or Python.
@lvgsredarmy8776 Жыл бұрын
If you’re a fan of Deno, you can do this too by putting “#! /usr/bin/env -S deno run -A” as your shebang! The “-A” tells deno to execute the file with all permissions allowed, so if you want to get granular and only grant it env var permissions, you could do “deno run -allow-env” instead. I personally prefer this to node as then I can utilize Typescript for free and write typescript scripts instead of Javascript. Thanks for showing me this idea Andrew, it really sparked my curiosity on how i could more efficiently use my shell as a primarily JS/TS dev who knows only enough bash to get by 😄
@JeremyKolassa Жыл бұрын
Huh, I never thought of this. Thanks for this!
@gosnooky Жыл бұрын
I normally do this in Python (it's actually the ONLY thing I use Python for). I omit the extension and save to the bin directory in ~. That way it looks like any ordinary executable.
@benjaminschultz6501 Жыл бұрын
You just blew my mind. I'm gonna try that!
@postedactive Жыл бұрын
Be nice to know a person like Andrew, I'd just be asking them to explain to me what they working on 😂😂... cool stuff
@andrew-burgess Жыл бұрын
Feel free to hit me up on twitter or email if there are topics you'd like to see videos on!
@postedactive Жыл бұрын
@@andrew-burgess I certainly will, big ups on all the great content and explainers 👍
@offroaders123 Жыл бұрын
Thanks for making this! I've been planning on looking into doing this with one of my own npm packages 📦 Also, I was wondering if using CommonJS is required for CLI Node scripts? I would like to use ESM natively instead if that's possible.
@eland-io Жыл бұрын
I'd really love to see you do more videos on bash and the commandline's core functionality. Your teaching style is easy to follow and consume.
@lukem121 Жыл бұрын
You think you can cover some cool react libraries? Just discovered react email and it looks cool. I feel like there are so many libraries that I would find useful but I don't know they exist
@EmilRaeven Жыл бұрын
One thing that I have never understood is where to store secrets used by an custom CLI application. Like you have an login function in it but where should it store the temporary token.
@echobucket Жыл бұрын
Store the token in an environment variable. Or give it to the use and ask them to store it in an environment variable, then the user can use the `pass` command to store their secrets and populate the variable.
@Fullflexno Жыл бұрын
Perfect!
@mk72v2oq Жыл бұрын
"If you are a programmer, you can write programs" 🙈
@andrew-burgess Жыл бұрын
Lol, fair. But I think there was a point for all of us when we said, "I didn't know I could do THAT!" Those have been my favourite moments of being a programmer.