Issues
This application was written following chapter 13 of Dave Thomas's Programming Elixir 1.2 book.
This is a CLI application that fetches issues from github repositories and returns the number, created_at date and title of the issue in a table.
Installation
Clone the repsitory:
$ git clone [email protected]:ljones140/elixir_github_issues.git
Install dependancies:
$ mix deps.get
Compile:
$ mix escript.build
This creates an executable issues
file which can be used by passing in the user,
repository and no of issues you want to retrieve.
$ ./issues <github-user> <repository> <no of issues>
For example if you wanted to retrieve the lastest 3 issues from elixir-langs elixir repo use:
$ ./issues elixir-lang elixir 3
The no of issues argument is optional and will default to 4 if not supplied
Testing
Exunit has been used to test. To run tests:
$ mix test
Generating documenation
To generate ExDoc documentation run
$ mix docs
Then open the file docs\index.html
in a browser to read them.