Skip to content

candy

Recipe card from the charly-candy-cli plugin (Commands — runtime CLI verbs).

charly candy — safe candy-manifest mutation

Section titled “charly candy — safe candy-manifest mutation”

charly candy mutates a candy’s charly.yml safely, descending into the entity’s candy: body. Served by candy/plugin-candy (command:candy).

  • charly candy set <name> <path> <value> — set a dot-path value on candy/<name>/charly.yml (e.g. a tunable or a nested field).
  • charly candy add-<fmt> <name> <pkg…> — append packages to the distro-format section <fmt> (e.g. add-pac, add-deb, add-rpm). The verb set derives from sectionDistroPath, so it cannot drift from the mapped formats.

To change a candy manifest programmatically instead of hand-editing YAML — the mutation respects the compact node form (<name>: {candy: {...}}) and the schema, so it cannot produce a malformed manifest.