Credo.CLI.Command.call

You're seeing just the callback call, go back to Credo.CLI.Command module for more information.

Specs

call(exec :: Credo.Execution.t()) :: Credo.Execution.t()

Is called when a Command is invoked.

defmodule FooTask do
  use Credo.Execution.Task

  def call(exec) do
    IO.inspect(exec)
  end
end

The call/1 functions receives an exec struct and must return a (modified) Credo.Execution.

Specs

call(exec :: Credo.Execution.t(), opts :: list()) :: Credo.Execution.t()

Runs the Command