Skip to content

feat: refactor build command to support interactive and custom OS/arch selection#1175

Merged
almas-x merged 2 commits intomasterfrom
almas/chore
Aug 26, 2025
Merged

feat: refactor build command to support interactive and custom OS/arch selection#1175
almas-x merged 2 commits intomasterfrom
almas/chore

Conversation

@almas-x
Copy link
Contributor

@almas-x almas-x commented Aug 25, 2025

📑 Description

This update refactors the build command to provide an interactive selection for OS and architecture, limited to commonly used options for convenience. However, users can still specify any OS and architecture supported by Go via command-line arguments. The validation of os and arch values is now delegated to the Go compiler, ensuring flexibility while simplifying the command logic. This makes the build process user-friendly for most cases, while retaining full compatibility with all platforms supported by Go.

✅ Checks

  • Added test cases for my code

Copilot AI review requested due to automatic review settings August 25, 2025 03:06
@almas-x almas-x requested a review from a team as a code owner August 25, 2025 03:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors the build command to provide an interactive interface for selecting OS and architecture, while maintaining flexibility for manual specification via command-line arguments. The change removes hardcoded validation and delegates OS/architecture validation to the Go compiler.

  • Added interactive architecture selection alongside existing OS selection
  • Removed hardcoded OS validation in favor of Go compiler validation
  • Refactored build logic to use a centralized command execution utility

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
console/console/build_command.go Adds architecture flag and interactive selection, removes hardcoded validation, refactors build execution
console/console/build_command_test.go Updates tests to include architecture parameter and reflects new validation approach

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@codecov
Copy link

codecov bot commented Aug 25, 2025

Codecov Report

❌ Patch coverage is 57.69231% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.53%. Comparing base (b8e3a32) to head (ecc42f1).
⚠️ Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
console/console/build_command.go 57.69% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1175      +/-   ##
==========================================
- Coverage   68.55%   68.53%   -0.03%     
==========================================
  Files         223      225       +2     
  Lines       14472    14596     +124     
==========================================
+ Hits         9922    10003      +81     
- Misses       4175     4216      +41     
- Partials      375      377       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@almas-x almas-x requested a review from hwbrzzl August 26, 2025 01:51
Copy link
Contributor

@hwbrzzl hwbrzzl left a comment

Choose a reason for hiding this comment

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

Nice 👍

@almas-x almas-x merged commit 7e25ea1 into master Aug 26, 2025
14 of 16 checks passed
@almas-x almas-x deleted the almas/chore branch August 26, 2025 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants