const { stepify } = require('./helpers')
const { global } = require('../store')
const step = exports

step['[the]?[\\s+]?[following]?[\\s+]?global HTTP client (configuration|options):$'] = stepify(function (_, map) {
  map.rows().forEach(pair => {
    this.global.set(pair.shift().toLowerCase(), pair.shift())
  })
})

step['(set|define) (an|the) environment variable "([^"]*)" to "([^"]*)"$'] = stepify(function (_, __, name, value) {
  process.env[name.trim()] = value.trim()
})

@@ -470,12 +470,144 @@
 e.trim()%0A%7D)%0A
+%0Astep%5B'%5Ereset global configuration$'%5D = stepify(function () %7B%0A  this.global.forEach((_, key) =%3E%0A    this.global.remove(key)%0A  %7D)%0A%7D)%0A

add flush config step