index.js
This file
Path
index.js
21 lines · 711 bytes · JavaScript
Last changed by
Switching to esm-only (#2464)John Geebefore adoptionf4bd470
History of this fileTake it
The walk stopped after 200 commits: lines older than 471ec40 point at it.
Switching to esm-only (#2464)John Geebefore adoptionf4bd470
lines 1–5why, one step back1import { Argument } from './lib/argument.js';2import { Command } from './lib/command.js';3import { CommanderError, InvalidArgumentError } from './lib/error.js';4import { Help } from './lib/help.js';5import { Option } from './lib/option.js';Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
line 6why, one step back6Switching to esm-only (#2464)John Geebefore adoptionf4bd470
line 7why, one step back7export const program = new Command();Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
line 8why, one step back8Switching to esm-only (#2464)John Geebefore adoptionf4bd470
lines 9–13why, one step back9export const createCommand = (name) => new Command(name);10export const createOption = (flags, description) =>11 new Option(flags, description);12export const createArgument = (name, description) =>13 new Argument(name, description);Revert factory function reexport (#2014)John Geebefore adoption14edbca
line 14why, one step back14Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40
lines 15–18why, one step back15/**16 * Expose classes17 */18Switching to esm-only (#2464)John Geebefore adoptionf4bd470
lines 19–21why, one step back19export { Command, Option, Argument, Help };20export { CommanderError, InvalidArgumentError };21export { InvalidArgumentError as InvalidOptionArgumentError }; // Deprecated