def force_set

cli@0.2.0.0 · cli.bend:5081

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

5081def force_set(found: Maybe<&2, String>) -> Bool:
5082  match found:
5083    case None{}: False{}
5084    case Some{+value}:
5085      Bool.and(Bool.not(String.is_empty(value)),
5086        Bool.not(String.eq(value, "0")))

Uses (7)

Used by (1)