diff --git a/apps/zipsync/src/ZipSyncCommandLineParser.ts b/apps/zipsync/src/ZipSyncCommandLineParser.ts index 922ea25fff5..c0c71bcc306 100644 --- a/apps/zipsync/src/ZipSyncCommandLineParser.ts +++ b/apps/zipsync/src/ZipSyncCommandLineParser.ts @@ -6,7 +6,7 @@ import type { CommandLineFlagParameter, IRequiredCommandLineStringParameter, IRequiredCommandLineChoiceParameter, - IRequiredCommandLineStringListParameter + CommandLineStringListParameter } from '@rushstack/ts-command-line/lib/index'; import type { ConsoleTerminalProvider } from '@rushstack/terminal/lib/ConsoleTerminalProvider'; import type { ITerminal } from '@rushstack/terminal/lib/ITerminal'; @@ -20,7 +20,7 @@ export class ZipSyncCommandLineParser extends CommandLineParser { private readonly _modeParameter: IRequiredCommandLineChoiceParameter; private readonly _archivePathParameter: IRequiredCommandLineStringParameter; private readonly _baseDirParameter: IRequiredCommandLineStringParameter; - private readonly _targetDirectoriesParameter: IRequiredCommandLineStringListParameter; + private readonly _targetDirectoriesParameter: CommandLineStringListParameter; private readonly _compressionParameter: IRequiredCommandLineChoiceParameter; private readonly _terminal: ITerminal; private readonly _terminalProvider: ConsoleTerminalProvider; diff --git a/common/changes/@rushstack/rig-package/bmiddha-zipsync-3_2025-09-16-00-42.json b/common/changes/@rushstack/ts-command-line/main_2025-09-30-19-21.json similarity index 59% rename from common/changes/@rushstack/rig-package/bmiddha-zipsync-3_2025-09-16-00-42.json rename to common/changes/@rushstack/ts-command-line/main_2025-09-30-19-21.json index 3483e7c8313..a03064b455f 100644 --- a/common/changes/@rushstack/rig-package/bmiddha-zipsync-3_2025-09-16-00-42.json +++ b/common/changes/@rushstack/ts-command-line/main_2025-09-30-19-21.json @@ -2,9 +2,9 @@ "changes": [ { "packageName": "@rushstack/ts-command-line", - "comment": "Add `IRequiredCommandLineStringListParameter`.", - "type": "minor" + "comment": "", + "type": "none" } ], "packageName": "@rushstack/ts-command-line" -} +} \ No newline at end of file diff --git a/common/changes/@rushstack/zipsync/main_2025-09-30-19-21.json b/common/changes/@rushstack/zipsync/main_2025-09-30-19-21.json new file mode 100644 index 00000000000..56706305c1e --- /dev/null +++ b/common/changes/@rushstack/zipsync/main_2025-09-30-19-21.json @@ -0,0 +1,10 @@ +{ + "changes": [ + { + "packageName": "@rushstack/zipsync", + "comment": "", + "type": "none" + } + ], + "packageName": "@rushstack/zipsync" +} \ No newline at end of file diff --git a/common/reviews/api/ts-command-line.api.md b/common/reviews/api/ts-command-line.api.md index dd85f73df4b..3541c82bb73 100644 --- a/common/reviews/api/ts-command-line.api.md +++ b/common/reviews/api/ts-command-line.api.md @@ -425,12 +425,6 @@ export interface IRequiredCommandLineIntegerParameter extends CommandLineInteger readonly value: number; } -// @public -export interface IRequiredCommandLineStringListParameter extends CommandLineStringListParameter { - // (undocumented) - values: ReadonlyArray; -} - // @public export interface IRequiredCommandLineStringParameter extends CommandLineStringParameter { // (undocumented) diff --git a/libraries/ts-command-line/src/index.ts b/libraries/ts-command-line/src/index.ts index f88f6c55c49..dc4b17d60e9 100644 --- a/libraries/ts-command-line/src/index.ts +++ b/libraries/ts-command-line/src/index.ts @@ -40,10 +40,7 @@ export { CommandLineStringParameter, type IRequiredCommandLineStringParameter } from './parameters/CommandLineStringParameter'; -export { - CommandLineStringListParameter, - type IRequiredCommandLineStringListParameter -} from './parameters/CommandLineStringListParameter'; +export { CommandLineStringListParameter } from './parameters/CommandLineStringListParameter'; export { CommandLineIntegerParameter, type IRequiredCommandLineIntegerParameter diff --git a/libraries/ts-command-line/src/parameters/CommandLineStringListParameter.ts b/libraries/ts-command-line/src/parameters/CommandLineStringListParameter.ts index ade590da365..c62eed59971 100644 --- a/libraries/ts-command-line/src/parameters/CommandLineStringListParameter.ts +++ b/libraries/ts-command-line/src/parameters/CommandLineStringListParameter.ts @@ -5,14 +5,6 @@ import type { ICommandLineStringListDefinition } from './CommandLineDefinition'; import { CommandLineParameterWithArgument, CommandLineParameterKind } from './BaseClasses'; import { EnvironmentVariableParser } from './EnvironmentVariableParser'; -/** - * The data type returned by {@link CommandLineParameterProvider.(defineStringParameter:2)}. - * @public - */ -export interface IRequiredCommandLineStringListParameter extends CommandLineStringListParameter { - values: ReadonlyArray; -} - /** * The data type returned by {@link CommandLineParameterProvider.defineStringListParameter}. * @public diff --git a/libraries/ts-command-line/src/providers/CommandLineParser.ts b/libraries/ts-command-line/src/providers/CommandLineParser.ts index a72ae6d4f7d..7855cd5a301 100644 --- a/libraries/ts-command-line/src/providers/CommandLineParser.ts +++ b/libraries/ts-command-line/src/providers/CommandLineParser.ts @@ -2,7 +2,7 @@ // See LICENSE in the project root for license information. import type * as argparse from 'argparse'; -import { Colorize } from '@rushstack/terminal/lib/Colorize'; +import { Colorize } from '@rushstack/terminal'; import type { CommandLineAction } from './CommandLineAction'; import type { AliasCommandLineAction } from './AliasCommandLineAction'; diff --git a/libraries/ts-command-line/src/test/ScopedCommandLineAction.test.ts b/libraries/ts-command-line/src/test/ScopedCommandLineAction.test.ts index d72c558c34f..a535c1e77cc 100644 --- a/libraries/ts-command-line/src/test/ScopedCommandLineAction.test.ts +++ b/libraries/ts-command-line/src/test/ScopedCommandLineAction.test.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license. // See LICENSE in the project root for license information. -import { AnsiEscape } from '@rushstack/terminal/lib/AnsiEscape'; +import { AnsiEscape } from '@rushstack/terminal'; import { ScopedCommandLineAction } from '../providers/ScopedCommandLineAction'; import type { CommandLineStringParameter } from '../parameters/CommandLineStringParameter';