Skip to main content

generate_init_script

Function generate_init_script 

Source
pub fn generate_init_script(fs: &dyn Fs, paths: &dyn Pather) -> Result<String>
Expand description

Generate the shell init script content from the current datastore state.

Scans the datastore for:

  • packs/*/shell/* — symlinks to shell scripts → source lines
  • packs/*/path/* — symlinks to directories → PATH= lines

Returns the script content as a string.