Docs exports: JSON llms.txt llms-full.txt Agent Files

module Shards::Docs::PostinstallScripts

Overview

Postinstall Scripts

Shards supports postinstall scripts defined in shard.yml:

scripts:
  postinstall: make ext

Version-aware execution

Postinstall scripts use PostinstallInfo for tracking:

This prevents unexpected re-execution of potentially destructive scripts while still notifying users when scripts change.

Manual execution

shards run - script          # run all pending scripts
shards run - script my_shard # run for specific shard

See PostinstallInfo, Commands::RunScript, Package#postinstall.

Defined in:

docs.cr