Conversation
…mand Co-authored-by: pardeike <853584+pardeike@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Running from the terminal I get this overly verbose
gabs version
2025-09-14T22:04:22.582+0200 INFO util/log.go:57 starting gabs {"version": "0.1.0", "commit": "unknown", "built": "unknown", "subcmd": "version"}
gabs 0.1.0 (unknown)
Fix verbose version output by suppressing startup log for version command
Sep 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
gabs versioncommand was producing overly verbose output by including the startup log before the actual version information:This makes the command unsuitable for clean terminal usage and scripting scenarios where only the version information is needed.
Changes:
cmd/gabs/main.goto include theversioncommand alongside the existinggamescommandversionandgamescommands produce clean output suitable for terminal usage and automationAfter the fix:
Verification:
gabs versionnow produces clean outputgabs gamescommands still produce clean outputgabs serverstill shows startup logs as expected for debugging server operationsThis change maintains backward compatibility while providing the expected clean output for version queries.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.