Current section

Files

Jump to
credo lib credo cli command explain explain_output.ex
Raw

lib/credo/cli/command/explain/explain_output.ex

defmodule Credo.CLI.Command.Explain.ExplainOutput do
@moduledoc false
alias Credo.CLI.Output.UI
use Credo.CLI.Output.FormatDelegator,
default: Credo.CLI.Command.Explain.Output.Default,
json: Credo.CLI.Command.Explain.Output.Json
def print_help(exec) do
usage = [
"Usage: ",
:olive,
"mix credo explain path_line_no_column [options]"
]
description = """
Explain the given issue.
"""
example = [
"Example: ",
:olive,
:faint,
"$ mix credo explain lib/foo/bar.ex:13:6"
]
options = """
General options:
--[no-]color Toggle colored output
-v, --version Show version
-h, --help Show this help
"""
UI.puts(usage)
UI.puts(description)
UI.puts(example)
UI.puts(options)
exec
end
end