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
-
@Jilano
Well, my tool will need object-structures.
And obviously, nodejs also came to my mind since its easy, OOP and not that uncommon.
I might be able to work around that in bash, using jshon, but that could be pretty messy. -
@metamourge Python sounds ideal for you, it's widely used for making CLI tools and supports objects and stuff. It's also extremely widespread and extremely easy to learn.
-
rhodium116yI know exactly as much Haskell as I need in order to make xmonad do what I need it to. If your tool is awesome enough you can script it in whatever you want; people will probably accept the learning curve.
But you'd probably save untold thousands of hours for us if you went with bash/python! -
LuxARTS16636yPython has a module to set arguments to the script call and creates a -h option automatically. Of course you can implement your own solution but the module works great.
-
OK, so I would write it in Python, but there is one problem.
Can I do imports relative to a modules location, like in NodeJS, instead of relative to the file, you are executing. -
kLue2146y@metamourge u mean imports of libraries ? Once installed in your env or venv I shouldn’t be a problem
Classic
Import argparse
Or
From this import that -
@kLue
No, not like importing from your Python-Env.
Just importing a file from somewhere in the filesystem.
If I want to do that, the import-paths usually have to be relative to the path of the file you executed.
Like if the executed file is in
~/py/start.py
The import paths of this file and all files it imports have to be relative to ~/py/
But I want the import-paths to be relative to the file that contains them.
Related Rants
-
gururaju53*Now that's what I call a Hacker* MOTHER OF ALL AUTOMATIONS This seems a long post. but you will definitely ...
-
linuxxx65This guy at my last internship. A windows fanboy to the fucking max! He was saying how he'd never use anythi...
-
creedasaurus60Another dev on my team just got a new machine. Before he came in today I made two separate USB installers and ...
Question to the Linux-Users on here.
What scripting languages do you know ?.
I want to build a cli-tool, which will be configurated by code, so I want to chose a language, that is relatively wide spread, or easy to learn.
question
linux
scripting language