def cluster.apply.mode
shake@0.7.0.0 · src/cli.bend:916
import shake@0.7.0.0/src/cli.bend as Cli
import Base
916
917
918def cluster.apply.mode(
919 mode: Mode,
920 +cc: Char,
921 +rest: String,
922 +orig: String,
923 +args: List<&2, Arg>,
924 +up: List<&2, Level>,
925 +subs: List<&2, Sub>,
926 +path: List<&2, String>,
927 +binds: List<&2, Bind>,
928 +pos: List<&2, Arg>,
929 +raw: Bool,
930 +seen: Bool
931) -> St:
932 match mode:
933 case Dead{e}:
934 St{Dead{e}, args, up, subs, path, binds, pos, raw, seen}
935 case _other:
936 +found = by_short(args, SCon{cc, SNil{}})
937 parse.take_arg(found, cluster.val(found, rest), orig, args, up, subs, path, binds, pos,
938 raw, seen)