Skip to main content

Module presets

Module presets 

Source

Structs§

ExtractReport
RemoveReport

Functions§

asset_paths
embedded_asset_paths
Return paths from the binary’s embedded preset bundle only.
extract_all
Extract all embedded assets.
extract_annotation_from_line
Extract a shine-dest: annotation from a single comment line.
extract_embedded_prefix
Extract one prefix from the binary’s embedded preset bundle only.
extract_prefix
Extract only assets whose path starts with prefix/.
parse_bun_description
Parse a leading // comment block from a bun source (.ts/.js/.mts/.mjs) as its description — the JS/TS-comment mirror of parse_script_description’s # handling for .sh/.ps1. An optional #! shebang is skipped; // lines are collected (a bare // is a blank line); the first non-comment line ends the block; trailing blank lines are trimmed. There are no shine-dest/shine-template annotations to skip here — those are #/.sh-only.
parse_dest_annotation
Parse the shine-dest: annotation from the first (or second, if shebang) line.
parse_script_description
Parse the leading comment block from a shell script, skipping the shebang line and any shine-dest: annotation line.
parse_template_annotation
Return true if the script opts into env-variable substitution.
read_asset_bytes
read_embedded_asset_bytes
Read a file from the binary’s embedded preset bundle, ignoring overlays.
remove_prefix
Remove embedded-asset files under prefix/ from target_dir.
set_overlay_dir