Skip to content
Myr

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 file

Take 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 back
1import { 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 back
6

Switching to esm-only (#2464)John Geebefore adoptionf4bd470

line 7why, one step back
7export const program = new Command();

Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40

line 8why, one step back
8

Switching to esm-only (#2464)John Geebefore adoptionf4bd470

lines 9–13why, one step back
9export 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 back
14

Add copyInheritedSettings to README (#1798)John Geebefore adoption471ec40

lines 15–18why, one step back
15/**
16 * Expose classes17 */18

Switching to esm-only (#2464)John Geebefore adoptionf4bd470

lines 19–21why, one step back
19export { Command, Option, Argument, Help };
20export { CommanderError, InvalidArgumentError };21export { InvalidArgumentError as InvalidOptionArgumentError }; // Deprecated