def sug.word.go

shake@0.7.0.0 · src/cli.bend:2408

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

2408# the suggestion for a word, when it is a long option word
2409def sug.word.go(long: Bool, +app: Cli, +at: List<&2, String>, +word: String) -> Maybe<&2, String>:
2410  match long:
2411    case False{}:
2412      None{}
2413    case True{}:
2414      sug.found(sug.best(sug.cands(sug.args(app, at)), sug.typed(cut_eq(String.drop(word, 2n)))))

Uses (12)

Used by (1)