Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Root825992yIt’s alright.
I don’t like its syntax (or significant whitespace) yet it is definitely a useful tool. -
For quick shell scripting like things I've recently came across "just" (https://github.com/casey/just )
It's a surprisingly well designed little tool and you can even easily switch out the "interpreter" and just write powershell, python, whatever as if it was shell script -
@Root I dunno it's not like it's rpg
Kind of forces good spacing
Don't really mind
I just bash scripting lol -
@Root I like everything c like
Bash you're one space off between a bracket and it's fucked -
@Root just the quick and dirty with the robustness that I like
And it supports gdal :) -
Don't use os.system
Use subprocess.run("your shell command", shell=true, check=true)
os.system is deprecated and less useful. With check=true your scripts will automatically pass correct.. status error code back to shell if one of them failed -
Though when possible I prefer
https://taskfile.dev/
Kind of more language agnostic and standardized solution.
Cross breed between makefiles, yaml and local executable CI workflows -
@darkwind not that I really need that right now my use is so simple presently
I'm just processing the output of ls since I can't seem to find a way to compose subprocess calls in.xargs -
Also. "Import argparse" is a friend for input to scripts. Very CI friendly, self documented as a code input
-
@darkwind ever have one of those days when you really really are starting to realize how badly you want to bone someone ?
Sigh
I've just been reminded of a younger me I'm a different situation by some viewing choices -
@darkwind now what needs to happen is daddy needs to continue to likey because making everything as it's been is dumb
And these fucks owe much more than a lay or two that lasts an hour or less -
python is great for making those stupid little scripts, I've been using it a lot for csv files
-
@Root will you help me in my quest to get people interested in project buildbox evil sorta woman ?
Python has grown on me as an alternative to bash
Including compared to c# the ease of making shell calls
Os.system()
rant