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.)

derek-zhou

derek-zhou

From what you described, it seems like a job for a small perl script or even shell script.

strzibny

strzibny

Then just go for it.

Where Next?

Popular in Questions Top

Tee
can someone please explain to me how Enum.reduce works with maps
New
itssasanka
Hi all, Trying to get some more clarity over utc_datetime and naive_datetime for Ecto: https://hexdocs.pm/ecto/Ecto.Schema.html#module-...
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
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
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
fireproofsocks
I’m working on defining a simple Ecto schema for a table (in PostGres), but I don’t see where I can define a column as NOT NULL. Conside...
New
Phillipp
Hey, I have a NanoPi-M3 and try to install Elixir on their Ubuntu image. I followed the Raspberry Pi installation instructions from the ...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New
chewm
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

Other popular topics Top

sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
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
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lis...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 27727 240
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
josevalim
Hi everyone, One of the features added to Elixir early on to help integration with Erlang code was the idea of overridable function defi...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New

We're in Beta

About us Mission Statement