Skip to content

feat: display goos & goarch #881

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions internal/execute/outputs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down Expand Up @@ -158,7 +158,7 @@ func printEasyHelp(sys System, simpleOptions []*tsoptions.CommandLineOption) {
output = append(output, " ", desc.Format(), sys.NewLine(), sys.NewLine())
}

Copy link
Preview

Copilot AI May 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the project documentation or CLI usage guide (e.g., README) to mention that the version and help output now display the host GOOS/GOARCH information.

Suggested change
// Note: Ensure that the CLI usage guide or README is updated to mention that the version and help output
// now display the host GOOS/GOARCH information (e.g., "linux/amd64").

Copilot uses AI. Check for mistakes.

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())
Expand Down