protected setCommandArgs()

in app/exec/extension/init.ts [95:155]


	protected setCommandArgs(): void {
		super.setCommandArgs();
		this.registerCommandArgument(
			"path",
			"Path",
			"Path to the folder where the extension will be initialized. Must be an empty folder.",
			args.FilePathsArgument,
			process.cwd(),
		);
		this.registerCommandArgument(
			"branch",
			"Branch",
			"Branch name for sample repository (default: master)",
			args.StringArgument,
			"master",
			true,
		);
		this.registerCommandArgument(
			"zipUri",
			"Zip URI",
			"URI to a zip file containing the sample extension. {{branch}} is replaced with the --branch argument value.",
			args.StringArgument,
			"https://codeload.github.com/Microsoft/azure-devops-extension-sample/zip/{{branch}}",
			true,
		);
		this.registerCommandArgument(
			"noDownload",
			"No Download",
			"Do not download or extract the sample package. Instead use the given folder assuming package already exists there.",
			args.BooleanArgument,
			"false",
			true,
		);
		this.registerCommandArgument(
			"npmPath",
			"NPM path",
			"Command line to invoke npm. May need to include the node executable.",
			args.StringArgument,
			"npm",
		);
		this.registerCommandArgument(
			"publisher",
			"Publisher ID",
			"Publisher ID for this extension. Create a publisher at https://marketplace.visualstudio.com/manage.",
			args.StringArgument,
		);
		this.registerCommandArgument("extensionId", "Extension ID", "This extension's ID.", args.StringArgument);
		this.registerCommandArgument("extensionName", "Extension name", "Friendly name of this extension.", args.StringArgument);
		this.registerCommandArgument(
			"samples",
			colors.white("Which samples do you want to start with?") +
				colors.gray(
					" You may specifiy multiple (comma-separated).\nFor descriptions, see https://github.com/Microsoft/azure-devops-extension-sample.\n  (A)ll, \n  (F)eature, \n  (H)ub, \n  (M)enu, \n  (P)anel, \n  Pi(v)ot, \n  (W)orkItemOpen, \n  (N)one - empty project\n",
				),
			"Specify which samples to include in the new extension.",
			args.StringArgument,
			undefined,
			false,
			"All",
		);
	}