heyTimApple

heyTimApple

little command line tools

Hello, I am just learning Elixir as a first language. I have done beginning tuts on F#, Clojure, Python, Rust, and Ruby before I stopped here.

I want to make a little command line tool that backs up a local config file to github occasionally. Is this something Elixir could be used to build? If so, could someone point me in the direction of places to look to learn to make this happen? I should mention the tool would be for windows.

I’m currently taking the The Complete Elixir and Phoenix Bootcamp and I’m early in but it so far, it’s a lot of playing with lists and manipulating them. Don’t know when it will get into other stuff and wanted to make this thing happen sooner than later.

Cheers!

Most Liked

astery

astery

Hi @heyTimApple . Read about building escript in elixir for small cli tool - Executables · Elixir School. And take a look at &System.cmd/3 function to run git.
Also as you working under windows, beware that all commands you want to run, should be in your PATH (e.g. git executable)

kokolegorille

kokolegorille

Hello and welcome,

Elixir needs to load the vm, which might not fit a command line tool.
You might still do it, but for this I would pick Rust.

strzibny

strzibny

If you want a small program that is run with Cron, Rust might be a better choice. That said if you want a long running little daemon (like a service), Elixir would be a good fit.

(Not that you cannot do no 1 in Elixir, you still get self contained executable and fast start up.)

Where Next?

Popular in Questions Top

_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
qwerescape
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
vac
Hi, I’m quite new in Elixir and I’m trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and I...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New

Other popular topics Top

dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
pmjoe
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 47930 226
New
marick
I had some trouble figuring out how to make many-to-many associations work. Once I got it working, I wrote a blog post. Because I’m a nov...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

We're in Beta

About us Mission Statement