in app/lib/tfcommand.ts [248:337]
protected setCommandArgs(): void {
this.registerCommandArgument(["project", "-p"], "Project name", null, args.StringArgument);
this.registerCommandArgument(["root", "-r"], "Root directory", null, args.ExistingDirectoriesArgument, ".");
this.registerCommandArgument(
["authType"],
"Authentication Method",
"Method of authentication ('pat' or 'basic').",
args.StringArgument,
"pat",
);
this.registerCommandArgument(
["serviceUrl", "-u"],
"Service URL",
"URL to the service you will connect to, e.g. https://youraccount.visualstudio.com/DefaultCollection.",
args.StringArgument,
);
this.registerCommandArgument(
["password"],
"Password",
"Password to use for basic authentication.",
args.SilentStringArgument,
);
this.registerCommandArgument(["token", "-t"], "Personal access token", null, args.SilentStringArgument);
this.registerCommandArgument(
["save"],
"Save settings",
"Save arguments for the next time a command in this command group is run.",
args.BooleanArgument,
"false",
);
this.registerCommandArgument(["username"], "Username", "Username to use for basic authentication.", args.StringArgument);
this.registerCommandArgument(
["output"],
"Output destination",
"Method to use for output. Options: friendly, json, clipboard.",
args.StringArgument,
"friendly",
);
this.registerCommandArgument(["json"], "Output as JSON", "Alias for --output json.", args.BooleanArgument, "false");
this.registerCommandArgument(
["fiddler"],
"Use Fiddler proxy",
"Set up the fiddler proxy for HTTP requests (for debugging purposes).",
args.BooleanArgument,
"false",
);
this.registerCommandArgument(
["proxy"],
"Proxy server",
"Use the specified proxy server for HTTP traffic.",
args.StringArgument,
null,
);
this.registerCommandArgument(["help", "-h"], "Help", "Get help for any command.", args.BooleanArgument, "false");
this.registerCommandArgument(
["noPrompt"],
"No Prompt",
"Do not prompt the user for input (instead, raise an error).",
args.BooleanArgument,
"false",
);
this.registerCommandArgument(
"includeUndocumented",
"Include undocumented commands?",
"Show help for commands and options that are undocumented (use at your own risk!)",
args.BooleanArgument,
"false",
);
this.registerCommandArgument(
"traceLevel",
"Trace Level",
`Tracing threshold can be specified as "none", "info" (default), and "debug".`,
args.StringArgument,
null,
);
this.registerCommandArgument(
"noColor",
"No colored output",
"Do not emit bytes that affect text color in any output.",
args.BooleanArgument,
"false",
);
this.registerCommandArgument(
"debugLogStream",
"Debug message logging stream (stdout | stderr)",
"Stream used for writing debug logs (stdout or stderr)",
args.StringArgument,
"stdout",
);
}