diff --git a/lib/index.js b/lib/index.js index 90d37d6..1248172 100644 --- a/lib/index.js +++ b/lib/index.js @@ -152,6 +152,16 @@ internals.definition = { alias: 'l', description: '[run] lists all available commands on your server', default: null + }, + color: { + type: 'boolean', + description: '[*] sets output to use color', + default: null + }, + 'no-color': { + type: 'boolean', + description: '[*] sets output to not use color', + default: null } }; diff --git a/test/index.js b/test/index.js index 87c58aa..4a81012 100644 --- a/test/index.js +++ b/test/index.js @@ -1173,7 +1173,7 @@ describe('hpal', () => { expect(result.errorOutput).to.contain('Sorry, couldn\'t find documentation for "xxx".'); }); - it('fetches docs from the packages\'s master branch when in a project that does not use the package.', async (flags) => { + it('fetches docs from the packages\'s master branch when in a project that does not use the package.', { timeout: 3000 }, async (flags) => { const mockWreck = mockWreckGet(null); flags.onCleanup = mockWreck.cleanup; @@ -1189,7 +1189,7 @@ describe('hpal', () => { expect(result.errorOutput).to.contain('Sorry, couldn\'t find documentation for "xxx".'); }); - it('fetches docs for the version specified by [--ver].', async (flags) => { + it('fetches docs for the version specified by [--ver].', { timeout: 3000 }, async (flags) => { const mockWreck = mockWreckGet(null); flags.onCleanup = mockWreck.cleanup;