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

Nikita

Metadata "global"

The global metadata provides a solution to share configuration properties between a group of actions. For example, database actions may share the same database name and connection information, or Docker actions share information on how to connect to the Docker daemon.

  • Type: string

Usage

Global properties are inherited from the parent actions, for example:

nikita
// Call a parent action with global config
.call({
  my_global: {
    my_key: 'my value'
  },
}, function() {
  // Call a child action with global metadata
  this.call({
    $global: 'my_global'  }, function({config}) {
    // Print config
    console.log(config) // { my_key: 'my value' }
  })
})
Edit on GitHub
Navigate
About

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