This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Issues.CLI do | |
@moduledoc """ | |
Handle the command line parsing and the dispatch to the various functions | |
that end up generating a table of the last _n_ issues in a GitHub project. | |
""" | |
@default_count 4 | |
def run(argv) do | |
argv |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Issues.GitHubIssues do | |
@user_agent [{"User-agent", "Issues [email protected]"}] | |
def fetch(user, project) do | |
issues_url(user, project) | |
|> HTTPoison.get(@user_agent) | |
|> handle_response | |
end | |
def issues_url(user, project) do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Apple-Mail=_59C7D647-374A-400F-8319-847E1514446E | |
Content-Transfer-Encoding: quoted-printable | |
Content-Type: text/html; | |
charset=utf-8 | |
<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html = | |
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = | |
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" = | |
class=3D""><h2 class=3D"chapter-name" style=3D"border: 0px; font-size: = | |
2.8em; margin: 21px 0px 0px; outline: 0px; padding: 15px 25px; = |
OlderNewer