GitHub.Issues.CLI (GitHub Issues v0.4.33) View Source
Parses the command line and prints a table of the first or last n issues of a GitHub project.
Inspired by the book Programming Elixir by Dave Thomas.
Link to this section Summary
Functions
Parses the command line and prints a table of the first or last n issues
of a GitHub project.
Link to this section Types
Specs
bell() :: boolean()
Specs
count() :: pos_integer()
Specs
parsed() ::
{user(), project(), count(), bell(), IO.ANSI.Table.Style.t()} | :help
Specs
project() :: String.t()
Specs
user() :: String.t()
Link to this section Functions
Specs
Parses the command line and prints a table of the first or last n issues
of a GitHub project.
argv can be "-h" or "--help", which prints info on the command's
usage and syntax. Otherwise it contains a user, a project, and
optionally the number of issues to format (the first n ones).
To format the last n issues, specify switch --last.
To ring the bell, specify switch --bell.
To choose a table style, specify switch --table-style.
Parameters
argv- command line arguments (list)
Switches
-hor--help- for help-lor--last- to format the last n issues-bor--bell- to ring the bell-tor--table-style- to choose a table style
Table styles
bare- no colorsbarish- like bare but coloredcyan- cyan backgroundcyan-alt- cyan header, alternating row colorscyan-border- light cyan bordercyan-mult- cyan header, 3 repeating row colorsdark- dark colorsdark-alt- dark colors, alternating row colorsdark-mult- dark colors, 3 repeating row colorsdashed- no colorsdotted- slightly coloreddotted-alt- slightly colored, alternating row colorsdotted-mult- slightly colored, 3 repeating row colorsgame- game boardgreen- green backgroundgreen-alt- green header, alternating row colorsgreen-border- light green bordergreen-border-padded- light green border with extra paddinggreen-border-unpadded- light green border without paddinggreen-mult- green header, 3 repeating row colorsgreen-padded- like green but with extra paddinggreen-unpadded- like green but without paddinglight- light colorslight-alt- light colors, alternating row colorslight-mult- light colors, 3 repeating row colorsmedium- medium colorsmedium-alt- medium colors, alternating row colorsmedium-mult- medium colors, 3 repeating row colorsmixed- fillers revealedplain- slightly coloredpretty- multicoloredpretty-alt- multicolored, alternating row colorspretty-mult- multicolored, 3 repeating row colorstest- no colorsyellow- light yellow backgroundyellow-border- light yellow border