From 298707204d22e5a04c558a6938506044434a7ef9 Mon Sep 17 00:00:00 2001 From: Masatoshi Nishiguchi <7563926+mnishiguchi@users.noreply.github.com> Date: Wed, 29 Nov 2023 19:26:05 -0500 Subject: [PATCH] remove Nerves CLI line and dashed lines --- lib/nerves_motd.ex | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/lib/nerves_motd.ex b/lib/nerves_motd.ex index f8f436f..bdef86f 100644 --- a/lib/nerves_motd.ex +++ b/lib/nerves_motd.ex @@ -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() @@ -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