def env.names.forest

shake@0.7.0.0 · src/cli.bend:1784

import shake@0.7.0.0/src/cli.bend as Cli
import Base

1784# the env vars of every subcommand's arguments, depth first
1785def env.names.forest(subs: List<&2, Sub>) -> List<&2, String>:
1786  match subs:
1787    case Nil{}:
1788      []
1789    case Con{hh, tt}:
1790      Sub{_n, _a, args, kids} = hh
1791      List.append(&2, String, env.names.args(args),
1792        List.append(&2, String, env.names.forest(kids), env.names.forest(tt)))

Uses (5)

Used by (1)