MCPcopy Create free account
hub / github.com/microsoft/typescript-go / PrintBuildHelp

Function PrintBuildHelp

internal/execute/tsc/help.go:135–147  ·  view source on GitHub ↗
(sys System, locale locale.Locale, buildOptions []*tsoptions.CommandLineOption)

Source from the content-addressed store, hash-verified

133}
134
135func PrintBuildHelp(sys System, locale locale.Locale, buildOptions []*tsoptions.CommandLineOption) {
136 var output []string
137 output = append(output, getHeader(sys, diagnostics.X_tsc_Colon_The_TypeScript_Compiler.Localize(locale)+" - "+diagnostics.Version_0.Localize(locale, core.Version()))...)
138 before := diagnostics.Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0.Localize(locale, "https://aka.ms/tsc-composite-builds")
139 options := core.Filter(buildOptions, func(option *tsoptions.CommandLineOption) bool {
140 return option != &tsoptions.TscBuildOption
141 })
142 output = append(output, generateSectionOptionsOutput(sys, locale, diagnostics.BUILD_OPTIONS.Localize(locale), options, false, &before, nil)...)
143
144 for _, chunk := range output {
145 fmt.Fprint(sys.Writer(), chunk)
146 }
147}
148
149func generateSectionOptionsOutput(
150 sys System,

Callers 1

tscBuildCompilationFunction · 0.92

Calls 7

VersionFunction · 0.92
FilterFunction · 0.92
getHeaderFunction · 0.85
LocalizeMethod · 0.65
WriterMethod · 0.65
appendFunction · 0.50

Tested by

no test coverage detected