Skip to content

Commit 5c68241

Browse files
mnishiguchifhunleth
authored andcommitted
Print MOTD in iex.exs
1 parent 1cd73bc commit 5c68241

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.formatter.exs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# Used by "mix format"
22
[
3-
inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"]
3+
inputs: [
4+
"{mix,.formatter}.exs",
5+
"rootfs_overlay/etc/iex.exs",
6+
"{config,lib,test}/**/*.{ex,exs}"
7+
]
48
]

rootfs_overlay/etc/iex.exs

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
# Add Toolshed helpers to the IEx session
2-
use Toolshed
3-
4-
if RingLogger in Application.get_env(:logger, :backends, []) do
5-
IO.puts([
1+
NervesMOTD.print(
2+
logo: [
63
IO.ANSI.color(5),
74
"""
85
@@ -32,10 +29,9 @@ if RingLogger in Application.get_env(:logger, :backends, []) do
3229
image. See https://github.com/elixir-circuits/circuits_quickstart for
3330
more details.
3431
35-
View log messages with `RingLogger.next` or `RingLogger.attach`. Toolshed
36-
helpers are available. Type `h Toolshed` for details.
37-
38-
If connecting via ssh, type `exit` or `<enter>~.` to disconnect.
3932
"""
40-
])
41-
end
33+
]
34+
)
35+
36+
# Add Toolshed helpers to the IEx session
37+
use Toolshed

0 commit comments

Comments
 (0)