@rushstack/ts-command-line
Advanced tools
Comparing version 4.16.0 to 4.16.1
@@ -8,5 +8,5 @@ // This file is read by tools that parse documentation comments conforming to the TSDoc standard. | ||
"packageName": "@microsoft/api-extractor", | ||
"packageVersion": "7.35.3" | ||
"packageVersion": "7.37.0" | ||
} | ||
] | ||
} |
import type { SCOPING_PARAMETER_GROUP } from '../Constants'; | ||
import { IBaseCommandLineDefinition, IBaseCommandLineDefinitionWithArgument } from './CommandLineDefinition'; | ||
import type { IBaseCommandLineDefinition, IBaseCommandLineDefinitionWithArgument } from './CommandLineDefinition'; | ||
/** | ||
@@ -4,0 +4,0 @@ * Identifies the kind of a CommandLineParameter. |
@@ -1,2 +0,2 @@ | ||
import { ICommandLineChoiceListDefinition } from './CommandLineDefinition'; | ||
import type { ICommandLineChoiceListDefinition } from './CommandLineDefinition'; | ||
import { CommandLineParameter, CommandLineParameterKind } from './BaseClasses'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { ICommandLineChoiceDefinition } from './CommandLineDefinition'; | ||
import type { ICommandLineChoiceDefinition } from './CommandLineDefinition'; | ||
import { CommandLineParameter, CommandLineParameterKind } from './BaseClasses'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { ICommandLineFlagDefinition } from './CommandLineDefinition'; | ||
import type { ICommandLineFlagDefinition } from './CommandLineDefinition'; | ||
import { CommandLineParameter, CommandLineParameterKind } from './BaseClasses'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { ICommandLineIntegerListDefinition } from './CommandLineDefinition'; | ||
import type { ICommandLineIntegerListDefinition } from './CommandLineDefinition'; | ||
import { CommandLineParameterWithArgument, CommandLineParameterKind } from './BaseClasses'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { ICommandLineIntegerDefinition } from './CommandLineDefinition'; | ||
import type { ICommandLineIntegerDefinition } from './CommandLineDefinition'; | ||
import { CommandLineParameterWithArgument, CommandLineParameterKind } from './BaseClasses'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { ICommandLineRemainderDefinition } from './CommandLineDefinition'; | ||
import type { ICommandLineRemainderDefinition } from './CommandLineDefinition'; | ||
/** | ||
@@ -3,0 +3,0 @@ * The data type returned by {@link CommandLineParameterProvider.defineCommandLineRemainder}. |
@@ -1,2 +0,2 @@ | ||
import { ICommandLineStringListDefinition } from './CommandLineDefinition'; | ||
import type { ICommandLineStringListDefinition } from './CommandLineDefinition'; | ||
import { CommandLineParameterWithArgument, CommandLineParameterKind } from './BaseClasses'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { ICommandLineStringDefinition } from './CommandLineDefinition'; | ||
import type { ICommandLineStringDefinition } from './CommandLineDefinition'; | ||
import { CommandLineParameterWithArgument, CommandLineParameterKind } from './BaseClasses'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import * as argparse from 'argparse'; | ||
import { CommandLineParameterProvider, ICommandLineParserData } from './CommandLineParameterProvider'; | ||
import type * as argparse from 'argparse'; | ||
import { CommandLineParameterProvider, type ICommandLineParserData } from './CommandLineParameterProvider'; | ||
import type { ICommandLineParserOptions } from './CommandLineParser'; | ||
@@ -4,0 +4,0 @@ /** |
import * as argparse from 'argparse'; | ||
import type { ICommandLineChoiceDefinition, ICommandLineChoiceListDefinition, ICommandLineIntegerDefinition, ICommandLineIntegerListDefinition, ICommandLineFlagDefinition, ICommandLineStringDefinition, ICommandLineStringListDefinition, ICommandLineRemainderDefinition } from '../parameters/CommandLineDefinition'; | ||
import type { ICommandLineParserOptions } from './CommandLineParser'; | ||
import { CommandLineParameter } from '../parameters/BaseClasses'; | ||
import { type CommandLineParameter } from '../parameters/BaseClasses'; | ||
import { CommandLineChoiceParameter } from '../parameters/CommandLineChoiceParameter'; | ||
@@ -6,0 +6,0 @@ import { CommandLineChoiceListParameter } from '../parameters/CommandLineChoiceListParameter'; |
@@ -1,2 +0,2 @@ | ||
import * as argparse from 'argparse'; | ||
import type * as argparse from 'argparse'; | ||
import type { CommandLineAction } from './CommandLineAction'; | ||
@@ -3,0 +3,0 @@ import { CommandLineParameterProvider } from './CommandLineParameterProvider'; |
@@ -109,2 +109,3 @@ "use strict"; | ||
if (err.message) { | ||
// eslint-disable-next-line no-console | ||
console.error(err.message); | ||
@@ -122,3 +123,5 @@ } | ||
} | ||
// eslint-disable-next-line no-console | ||
console.error(); | ||
// eslint-disable-next-line no-console | ||
console.error(colors_1.default.red(message)); | ||
@@ -191,2 +194,3 @@ if (!process.exitCode) { | ||
if (err.message) { | ||
// eslint-disable-next-line no-console | ||
console.log(err.message); | ||
@@ -193,0 +197,0 @@ } |
import { SCOPING_PARAMETER_GROUP } from '../Constants'; | ||
import { CommandLineAction, ICommandLineActionOptions } from './CommandLineAction'; | ||
import { CommandLineParser, ICommandLineParserOptions } from './CommandLineParser'; | ||
import { CommandLineAction, type ICommandLineActionOptions } from './CommandLineAction'; | ||
import { CommandLineParser, type ICommandLineParserOptions } from './CommandLineParser'; | ||
import type { CommandLineParameter } from '../parameters/BaseClasses'; | ||
@@ -5,0 +5,0 @@ import type { CommandLineParameterProvider, ICommandLineParserData } from './CommandLineParameterProvider'; |
@@ -117,3 +117,4 @@ "use strict"; | ||
if (this.remainder.values[0] !== '--') { | ||
// Immitate argparse behavior and log out usage text before throwing. | ||
// Imitate argparse behavior and log out usage text before throwing. | ||
// eslint-disable-next-line no-console | ||
console.log(this.renderUsageText()); | ||
@@ -120,0 +121,0 @@ throw new CommandLineParserExitError_1.CommandLineParserExitError( |
@@ -1,2 +0,2 @@ | ||
import { CommandLineParameter } from '../parameters/BaseClasses'; | ||
import { type CommandLineParameter } from '../parameters/BaseClasses'; | ||
import { CommandLineAction } from './CommandLineAction'; | ||
@@ -3,0 +3,0 @@ export declare class TabCompleteAction extends CommandLineAction { |
@@ -87,2 +87,3 @@ "use strict"; | ||
const value = _c; | ||
// eslint-disable-next-line no-console | ||
console.log(value); | ||
@@ -89,0 +90,0 @@ } |
{ | ||
"name": "@rushstack/ts-command-line", | ||
"version": "4.16.0", | ||
"version": "4.16.1", | ||
"description": "An object-oriented command-line parser for TypeScript", | ||
@@ -20,7 +20,7 @@ "repository": { | ||
"devDependencies": { | ||
"@rushstack/heft": "0.54.0", | ||
"@rushstack/heft-node-rig": "2.2.6", | ||
"@rushstack/heft": "0.59.0", | ||
"@rushstack/heft-node-rig": "2.2.23", | ||
"@types/heft-jest": "1.0.1", | ||
"@types/node": "18.17.15", | ||
"@rushstack/eslint-config": "3.3.4" | ||
"local-eslint-config": "1.0.0" | ||
}, | ||
@@ -27,0 +27,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
423181
4733