def files.at

bolt@1.26.0.0 · src/args.bend:141

import bolt@1.26.0.0/src/args.bend as Args
import Base
import shake@0.6.0.0/main.bend as Shake

141# the files the selected command bound: each command keeps its own
142# bindings, so they are read from the Matched at the end of the selected
143# path, which is the root's own when no subcommand was selected
144def files.at(sel: Maybe<&2, Shake.Matched>, +mm: Shake.Matched) -> List<&2, String>:
145  match sel:
146    case Some{ss}:
147      Shake.get_all(ss, "files")
148    case None{}:
149      Shake.get_all(mm, "files")

Uses (5)

Used by (1)