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)
26
37
17
See more examples
How to use @oclif/config.load:
GitHub: heroku/cli
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') })
242
826
108
See more examples