def zsh_spec_lines

cli@0.2.0.0 · cli.bend:6801

import cli@0.2.0.0/cli.bend as Cli
import Base

6801# Specs quoted, one per line, all but the last continued.
6802def zsh_spec_lines(specs: List<&2, String>, +ind: String) ->
6803    List<&2, String>:
6804  match specs:
6805    case Nil{}: Nil{}
6806    case spec <> Nil{}: [String.concat([ind, "  ", Sh.quote(spec)])]
6807    case spec <> tail:
6808      String.concat([ind, "  ", Sh.quote(spec), " \\"]) <>
6809        zsh_spec_lines(tail, ind)

Uses (4)

Used by (1)