InitOptions class

Parsed options for the river_cli init command.

Module selection precedence (highest first): --minimal, --all, --modules a,b. If none of those are given and --yes is set, all optional modules are selected. Otherwise the caller runs interactive prompts.

Constructors

InitOptions({bool all = false, bool minimal = false, List<String> modules = const [], bool yes = false, bool runPubGet = true, bool force = false, bool list = false, bool help = false, List<String> unknownFlags = const []})
const
InitOptions.parse(List<String> args)
Parses the args that follow the init command.
factory

Properties

all bool
final
force bool
final
hashCode int
The hash code for this object.
no setterinherited
help bool
final
list bool
final
minimal bool
final
modules List<String>
final
runPubGet bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unknownFlags List<String>
Flag tokens that were not recognized (reported, non-fatal).
final
wantsInteractive bool
True when no explicit selector was given and prompts should be shown.
no setter
yes bool
final

Methods

explicitSelection() List<String>?
Resolves the explicit selection, or null to signal "ask interactively". Returned keys are the optional module keys (core is always added later).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited