Pi.Project.Context (pi_bridge v0.8.4)

Copy Markdown View Source

Explicit filesystem and Mix context for the target project.

Summary

Types

t()

@type t() :: %Pi.Project.Context{
  app: atom() | nil,
  build_path: Path.t(),
  mix_env: String.t(),
  mix_file: Path.t(),
  root: Path.t(),
  source: :explicit | :target_env | :cwd
}

Functions

command(context, command, args, opts \\ [])

@spec command(t(), String.t(), [String.t()], keyword()) ::
  {String.t(), non_neg_integer()}

current(opts \\ [])

@spec current(keyword()) :: t()

mix_project?(context)

@spec mix_project?(t()) :: boolean()

relative(context, path)

@spec relative(t(), Path.t()) :: Path.t()

resolve(context, path)

@spec resolve(t(), Path.t()) :: Path.t()