Skip to content

Commit

Permalink
remove Nerves CLI line and dashed lines
Browse files Browse the repository at this point in the history
  • Loading branch information
mnishiguchi committed Nov 30, 2023
1 parent 1815558 commit 2987072
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions lib/nerves_motd.ex
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ defmodule NervesMOTD do
"\n",
Enum.map(rows(apps, combined_opts), &format_row/1),
"\n",
"""
Nerves CLI help: https://hexdocs.pm/nerves/iex-with-nerves.html
""",
fortune(opts)
fortune(opts),
"\n"
]
|> IO.ANSI.format()
|> IO.puts()
Expand All @@ -90,12 +88,7 @@ defmodule NervesMOTD do
@spec fortune([option()]) :: IO.ANSI.ansidata()
defp fortune(opts) do
if opts[:fortune] do
"""
--------------------------------------------------------------------------------
#{Fortune.random!()}
--------------------------------------------------------------------------------
"""
Fortune.random!()
else
[]
end
Expand Down

0 comments on commit 2987072

Please sign in to comment.