Interface TierAction

All Known Implementing Classes:
TierAction.Skip, TierAction.UpToDate, TierAction.UserManaged, TierAction.Write

public sealed interface TierAction permits TierAction.Write, TierAction.Skip, TierAction.UpToDate, TierAction.UserManaged
A plan-time decision about what to do with a single scaffold entry. Produced by a TierHandler from a (manifest entry, current disk state, template bytes, lockfile entry) tuple and consumed by the scaffold applier.

The sealed hierarchy gives the applier exhaustive pattern matching and keeps the planner pure — no tier handler touches disk during planning.

  • Method Details

    • entry

      ManifestEntry entry()
      The manifest entry this action relates to.
      Returns:
      the originating manifest entry
    • resolvedDest

      Path resolvedDest()
      The absolute destination path on disk, with any ~/ or {project.root}/ placeholders already expanded.
      Returns:
      the fully-resolved destination path
    • reason

      String reason()
      Human-readable summary rendered in scaffold-draft output. One line per entry; may include counts or diff hints.
      Returns:
      the draft-output summary line for this action