Skip to content

Commit

Permalink
Merge f317017 into 68c7430
Browse files Browse the repository at this point in the history
  • Loading branch information
fenollp committed Apr 19, 2019
2 parents 68c7430 + f317017 commit 3259df0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion config/config.exs
Expand Up @@ -27,4 +27,4 @@ use Mix.Config
# Configuration from the imported file will override the ones defined
# here (which is why it is important to import them last).
#
import_config "#{Mix.env}.exs"
import_config "#{Mix.env()}.exs"
10 changes: 5 additions & 5 deletions lib/scribe.ex
Expand Up @@ -75,15 +75,15 @@ defmodule Scribe do
+----------+---------+
:ok
"""
@spec print(data, format_opts) :: :ok
def print(_results, opts \\ [])
@spec print(data, IO.device(), format_opts) :: :ok
def print(_results, dev \\ :stdio, opts \\ [])

def print([], _opts), do: :ok
def print([], _dev, _opts), do: :ok

def print(results, opts) do
def print(results, dev, opts) do
results
|> format(opts)
|> IO.puts()
|> IO.puts(dev)
end

def console(results, opts \\ []) do
Expand Down

0 comments on commit 3259df0

Please sign in to comment.