Skip to content

RooSoft/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cli prototype app

CLI protype app accepting parameters and then quitting after doing some work

Inspired by blackode's post

How to compile

mix escript.build

How to run

./cli cat --file contents.txt
Unnamed arguments: ["cat"]
Named arguments: [file: "contents.txt"]

The making of

Create the project

mix new cli

In the mix.exs, add this to the project keyword list

escript: [main_module: Cli.Main],

Build it

mix escript.build

Run it

./cli cat --file contents.txt

About

Elixir CLI protype app accepting parameters and then quitting after doing some work

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages