You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -31,8 +30,11 @@ function createLogger(): Logger {
31
30
returndirect;
32
31
}
33
32
34
-
exportfunctionenableDebug(): void{
35
-
logSink.debug=console.debug;
33
+
exportfunctioncheckDebugLogging(argv: any): void{
34
+
constdebug=argv.debug;
35
+
if(debug){
36
+
logSink.debug=console.debug;
37
+
}
36
38
}
37
39
38
40
exportconstLogger=createLogger();
@@ -54,46 +56,7 @@ export function printBanner() {
54
56
Logger.info(bannerText);
55
57
}
56
58
57
-
constusageText=`
58
-
Usage: tsp-client <command> [options]
59
+
exportconstusageText=`
60
+
Usage: tsp-client <COMMAND> [OPTIONS]
59
61
60
-
Use one of the supported commands to get started generating clients from a TypeSpec project.
61
-
This tool will default to using your current working directory to generate clients in and will
62
-
use it to look for relevant configuration files. To specify a different directory, use
63
-
the -o or --output-dir option.
64
-
65
-
Commands:
66
-
init Initialize the SDK project folder from a tspconfig.yaml [string]
67
-
sync Sync TypeSpec project specified in tsp-location.yaml [string]
68
-
generate Generate from a TypeSpec project [string]
69
-
update Sync and generate from a TypeSpec project [string]
70
-
convert Convert a swagger specification to TypeSpec [string]
71
-
72
-
Options:
73
-
--arm Convert ARM swagger specification to TypeSpec [boolean]
74
-
-c, --tsp-config The tspconfig.yaml file to use [string]
75
-
--commit Commit to be used for project init or update [string]
76
-
-d, --debug Enable debug logging [boolean]
77
-
--emitter-options The options to pass to the emitter [string]
78
-
--generate-lock-file Generate a lock file under the eng/ directory from
79
-
an existing emitter-package.json [boolean]
80
-
-h, --help Show help [boolean]
81
-
--local-spec-repo Path to local repository with the TypeSpec project [string]
82
-
--no-prompt Skip prompting for output directory confirmation [boolean]
83
-
--save-inputs Don't clean up the temp directory after generation [boolean]
84
-
--skip-sync-and-generate Skip sync and generate during project init [boolean]
85
-
--swagger-readme Path or url to swagger readme file [string]
86
-
-o, --output-dir Specify an alternate output directory for the
87
-
generated files. Default is your current directory [string]
88
-
--repo Repository where the project is defined for init
89
-
or update [string]
90
-
-v, --version Show version number [boolean]
91
-
`;
92
-
exportfunctionprintUsage(){
93
-
Logger(usageText);
94
-
}
95
-
96
-
exportasyncfunctionprintVersion(){
97
-
constversion=awaitgetPackageVersion();
98
-
Logger(`tsp-client version: ${version}`);
99
-
}
62
+
Use one of the supported commands to get started generating clients from a TypeSpec project. This tool will default to using your current working directory to generate clients in and will use it to look for relevant configuration files. To specify a different directory, use the -o or --output-dir option.`;
0 commit comments