Skip to content
Myr

Remove default export of global program (#2017)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by John Gee · committed by GitHub · parent f570b08 · Browse files · 8 files+68 added−28 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

8 files+68 added−28 removed

  • tests:+63 added−22 removed
  • other:+5 added−6 removed

8 files+68 added−28 removed

modified:docs/deprecated.md+1 added
56 unmodified lines
5758- Removed from README in Commander v5.59- Deprecated from Commander v7.60- Removed from TypeScript declarations in Commander v8.61- Removed from CommonJS in Commander v12. Deprecated and gone!6263## Callback to .help() and .outputHelp()6465These routines allowed a callback parameter to process the built-in help before display.
145 unmodified lines
modified:tests/fixtures/inspect.js+1 added-1 removed
modified:tests/fixtures/pm+1 added-1 removed
1#!/usr/bin/env node23var program = require('../../');3var { program } = require('../../');45program6 .version('0.0.1')7 .command('install [name]', 'install one or more packages').alias('i')
11 unmodified lines
modified:tests/fixtures/pm-cache.js+1 added-1 removed
modified:tests/fixtures-extensions/pm.js+1 added-1 removed
modified:tests/program.test.js+59 added-12 removed
modified:tests/ts-imports.test.ts-6 removed
modified:index.js+4 added-6 removed