-
Notifications
You must be signed in to change notification settings - Fork 44
/
.iex.exs
40 lines (29 loc) · 1.08 KB
/
.iex.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# if Code.ensure_loaded?(ExSync) && function_exported?(ExSync, :register_group_leader, 0) do
# ExSync.register_group_leader()
# end
use ConsoleHelpers
# if module_enabled?(Bonfire.Common.Test.Interactive) and Mix.env() == :test do
# # to run tests from iex
# # Code.compiler_options(ignore_module_conflict: true)
# # Code.compile_file("~/.iex/iex_watch_tests.exs", File.cwd!())
# unless GenServer.whereis(Bonfire.Common.Test.Interactive) do
# {:ok, pid} = Bonfire.Common.Test.Interactive.start_link()
# # Process will not exit when the iex goes out
# Process.unlink(pid)
# end
# Bonfire.Common.Test.Interactive.Helpers.ready()
# else
# if Mix.env() == :test, do: info("IExWatchTests is not running")
# end
# import_if_enabled(Bonfire.Common.Test.Interactive.Helpers)
# if Code.ensure_loaded?(ExSync) and function_exported?(ExSync, :register_group_leader, 0) do
# ExSync.register_group_leader()
# end
defmodule ObserverCLI do
def observer_cli_start, do: start()
defp start do
Logger.configure(level: :error)
:observer_cli.start
end
end
import ObserverCLI