Speaking of creating your own cli tools. I would like to share something cool: a scripting language called ABS.
This is why I think is cool.
It has a C-like syntax.
You can call external commands and handle the result in a convenient way.
It has a module system.
It has a builtin tool that allows you to create cli tools.
Here is a little snippet.
tz=`cat /etc/timezone`if!tz.ok{echo("Ooops, something went wrong")exit(1)}continent,city=tz.split("/")echo("Best city in the world?")selection=stdin()ifselection==city{echo("You might be biased...")}else{echo("Yes, ${selection} is awesome.")}
I wrote about this language a few years ago, here is the post if anyone is interested.
I like this a lot because it allows people who are familiar with a languages like javascript or PHP (that would be me) to write shell scripts in a way that feels comfortable.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Speaking of creating your own cli tools. I would like to share something cool: a scripting language called ABS.
This is why I think is cool.
Here is a little snippet.
I wrote about this language a few years ago, here is the post if anyone is interested.
I like this a lot because it allows people who are familiar with a languages like javascript or PHP (that would be me) to write shell scripts in a way that feels comfortable.