How to use @oclif/config

Comprehensive @oclif/config code examples:

How to use @oclif/config.Config:

How to use @oclif/config.Plugin:

23
24
25
26
27
28
29
30
31

test('all commands from 0.15.0 have aliases', async () => {
  const oldCommandNames = loadCommandNames(require('../data/oclif.manifest.0.15.0.json')).filter(name => name !== 'cloudmanager')

  const root = path.resolve('.')
  const thisPlugin = new Config.Plugin({ root, type: 'core', ignoreManifest: true, errorOnManifestCreate: true })
  await thisPlugin.load()

  const newCommandNames = loadCommandNames(thisPlugin.manifest)

How to use @oclif/config.load:

20
21
22
23
24
25
26
27
28
  state: 'provisioned',
  provision_message: 'provision message'
}

beforeEach(async () => {
  config = await Config.load()
  cli.mockConsole()
  api = nock('https://api.heroku.com:443')
})