From ab01f98b71633ad889f0b1118b7c9515db0a4ad6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90=20Kevin=20Deng?= Date: Tue, 20 May 2025 09:37:05 +0800 Subject: [PATCH] feat: display goos & goarch --- internal/execute/outputs.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/execute/outputs.go b/internal/execute/outputs.go index 7fcc8011d0..4be02c0800 100644 --- a/internal/execute/outputs.go +++ b/internal/execute/outputs.go @@ -95,7 +95,7 @@ func reportStatistics(sys System, program *compiler.Program, result compileAndEm } func printVersion(sys System) { - fmt.Fprint(sys.Writer(), diagnostics.Version_0.Format(core.Version)+sys.NewLine()) + fmt.Fprint(sys.Writer(), diagnostics.Version_0.Format(core.Version)+" "+runtime.GOOS+"/"+runtime.GOARCH+sys.NewLine()) sys.EndWrite() } @@ -158,7 +158,7 @@ func printEasyHelp(sys System, simpleOptions []*tsoptions.CommandLineOption) { output = append(output, " ", desc.Format(), sys.NewLine(), sys.NewLine()) } - msg := diagnostics.X_tsc_Colon_The_TypeScript_Compiler.Format() + " - " + diagnostics.Version_0.Format(core.Version) + msg := diagnostics.X_tsc_Colon_The_TypeScript_Compiler.Format() + " - " + diagnostics.Version_0.Format(core.Version) + " - " + runtime.GOOS + "/" + runtime.GOARCH output = append(output, getHeader(sys, msg)...) output = append(output /*colors.bold(*/, diagnostics.COMMON_COMMANDS.Format() /*)*/, sys.NewLine(), sys.NewLine())