Documentationcurrent version
Help us improve the docs by fixing typos and proposing enhancements.

Nikita

Metadata "dirty"

The dirty metadata disables decommissioning a temporary directory after action execution.

  • Type: boolean

Usage

Pass true to the metadata to disable decommissioning:

(async () => {
  await nikita
  // Call an action with $tmpdir and $dirty
  .call({
    $dirty: true,    $tmpdir: '/tmp/a_dir'  }, () => true)
  // Assert the temporary directory exists
  .fs.assert('/tmp/a_dir')
})()
Edit on GitHub
Navigate
About

Nikita is an open source project hosted on GitHub and developed by Adaltas.