SkillsConfig class final
One scope's per-skill skills: entries: skill name → on/off.
Keys are skill names (case-insensitively resolved at resolution time —
the canonical entry keeps the last written casing). Values must be
booleans; access, disableShellExecution and liveRediscovery
(gh-1440) are the section's reserved keys and are NOT accepted here
(the CLI config parser handles them alongside this).
Constructors
-
SkillsConfig({Map<
String, bool> skills = const {}}) - SkillsConfig.empty()
-
An empty config (no wishes).
const
- SkillsConfig.fromYaml(Object? node)
-
Parses a
skills:yaml node's per-skill entries.nodemust be a YamlMap (the caller's type gate); every key except the section's reserved keys is a skill name with a mandatory boolean value.factory
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toYaml(
) → String -
The
skills:yaml fragment for these entries (one indented line per name), for surgical merges into a config file.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
reservedKeys
→ const Set<
String> - The section's reserved keys — never skill names.