Imp.Playbook.Operation.Revise (Imp v0.5.0)

Copy Markdown View Source

Revises an entry while retaining its ID and linking to its prior hash.

Summary

Types

t()

@type t() :: %Imp.Playbook.Operation.Revise{
  content: String.t(),
  expected_revision: pos_integer() | nil,
  id: String.t(),
  provenance: Imp.Playbook.Provenance.t() | :preserve | term(),
  section: String.t() | :preserve,
  status: Imp.Playbook.Entry.status() | :preserve
}

Functions

new(id, content, opts \\ [])

@spec new(String.t(), String.t(), keyword()) :: t()