index.js
This file
Path
index.js
27 lines · 798 bytes · JavaScript
Last changed by
Refactor classes into files (#1522)John Geebefore adoption08245cc
History of this fileTake it
The walk stopped after 200 commits: lines older than 2aad525 point at it.
Refactor classes into files (#1522)John Geebefore adoption08245cc
lines 1–6why, one step back1const { Argument } = require('./lib/argument.js');2const { Command } = require('./lib/command.js');3const { CommanderError, InvalidArgumentError } = require('./lib/error.js');4const { Help } = require('./lib/help.js');5const { Option } = require('./lib/option.js');6Update dependencies (#1214)John Geebefore adoption2aad525
line 7why, one step back7// @ts-checkRefactor classes into files (#1522)John Geebefore adoption08245cc
lines 8–9why, one step back89/**Update dependencies (#1214)John Geebefore adoption2aad525
line 10why, one step back10 * Expose the root command.Refactor classes into files (#1522)John Geebefore adoption08245cc
lines 11–12why, one step back11 */12Update dependencies (#1214)John Geebefore adoption2aad525
lines 13–14why, one step back13exports = module.exports = new Command();14exports.program = exports; // More explicit access to global command.Refactor classes into files (#1522)John Geebefore adoption08245cc
lines 15–17why, one step back15// Implicit export of createArgument, createCommand, and createOption.1617/**Update dependencies (#1214)John Geebefore adoption2aad525
line 18why, one step back18 * Expose classesRefactor classes into files (#1522)John Geebefore adoption08245cc
lines 19–20why, one step back19 */20More consistent way of adding command arguments (#1490)John Geebefore adoptionb286da9
line 21why, one step back21exports.Argument = Argument;Refactor classes into files (#1522)John Geebefore adoption08245cc
line 22why, one step back22exports.Command = Command;Update dependencies (#1214)John Geebefore adoption2aad525
line 23why, one step back23exports.CommanderError = CommanderError;Refactor help internals into separate interface/class (#1365)John Geebefore adoption19ae912
line 24why, one step back24exports.Help = Help;Refactor classes into files (#1522)John Geebefore adoption08245cc
lines 25–27why, one step back25exports.InvalidArgumentError = InvalidArgumentError;26exports.InvalidOptionArgumentError = InvalidArgumentError; // Deprecated27exports.Option = Option;