def ask.hash

ezx@1.11.0.0 · src/fetch/plan.bend:936

import ezx@1.11.0.0/src/fetch/plan.bend as Plan
import Base
import ezx@1.11.0.0/src/fetch/world.bend as F
import ezx@1.11.0.0/src/lock/world.bend as W

936# the package a question is about
937def ask.hash(ask: F.Ask) -> String:
938  match ask:
939    case F.Laid{hash}:
940      hash
941    case F.Git{hash, _q}:
942      hash
943    case F.Hub{q}:
944      W.ask.hash(q)
945    case F.Named{nv}:
946      nv
947    case F.Tree{hash, _entry}:
948      hash

Uses (3)

Used by (1)