Skip to content

Commit 7de1a5b

Browse files
committed
refactor: add --collection option
This option allows you to specify the schematics collection to be used.
1 parent 4467268 commit 7de1a5b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

lib/declarations.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,10 @@ interface ICreateProjectOptions extends INpmInstallConfigurationOptionsBase {
438438
pathToTemplate?: string;
439439
}
440440

441+
interface IGenerateOptions {
442+
collection?: string;
443+
}
444+
441445
interface IDebugInformation extends IPort, Mobile.IDeviceIdentifier {
442446
url: string;
443447
}
@@ -451,7 +455,7 @@ interface IPluginSeedOptions {
451455
pluginName: string;
452456
}
453457

454-
interface IOptions extends ICommonOptions, IBundleString, IPlatformTemplate, IHasEmulatorOption, IClean, IProvision, ITeamIdentifier, IAndroidReleaseOptions, INpmInstallConfigurationOptions, IPort, IEnvOptions, IPluginSeedOptions {
458+
interface IOptions extends ICommonOptions, IBundleString, IPlatformTemplate, IHasEmulatorOption, IClean, IProvision, ITeamIdentifier, IAndroidReleaseOptions, INpmInstallConfigurationOptions, IPort, IEnvOptions, IPluginSeedOptions, IGenerateOptions {
455459
all: boolean;
456460
client: boolean;
457461
compileSdk: number;

lib/options.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ export class Options extends commonOptionsLibPath.OptionsBase {
4141
background: { type: OptionType.String },
4242
username: { type: OptionType.String },
4343
pluginName: { type: OptionType.String },
44-
hmr: {type: OptionType.Boolean}
44+
hmr: { type: OptionType.Boolean },
45+
collection: { type: OptionType.String, alias: "c" },
4546
},
4647
$errors, $staticConfig, $settingsService);
4748

0 commit comments

Comments
 (0)