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

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44265 214
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
DarynOngera
Hey guys, I’ve had this in local for a couple of days I thought I should share to the community. What if ? A business transaction can n...
New

We're in Beta

About us Mission Statement