ScriptsConfig constructor

ScriptsConfig({
  1. required Map<String, Script> scripts,
  2. List<String>? parents,
})

Implementation

ScriptsConfig({
  required this.scripts,
  this.parents,
})  : assert(
        !scripts.containsKey(Keys.command),
        'The key "${Keys.command}" cannot exist in the config',
      ),
      assert(
        !scripts.containsKey(Keys.description),
        'The key "${Keys.description}" cannot exist in the config',
      ),
      assert(
        !scripts.containsKey(Keys.aliases),
        'The key "${Keys.aliases}" cannot exist in the config',
      );