Skip to main content

for_block

Function for_block 

Source
pub fn for_block(
    block_id: &str,
    block_meta: &HashMap<String, Value>,
    settings: &SettingsType,
) -> (PathBuf, Vec<String>)
Expand description

The shell and extra arguments a block’s interactive terminal starts with: resolve_for_spawn on the block’s and the global term:localshellpath, and the block’s term:localshellopts, else the setting’s (appended after the shell-integration arguments). Logs a configured shell that wasn’t found.