Skip to content

chore: add support for custom spinner messages in ExecuteCommand#1031

Merged
almas-x merged 1 commit intomasterfrom
almas/chore
May 14, 2025
Merged

chore: add support for custom spinner messages in ExecuteCommand#1031
almas-x merged 1 commit intomasterfrom
almas/chore

Conversation

@almas-x
Copy link
Contributor

@almas-x almas-x commented May 14, 2025

📑 Description

Closes https://github.com/goravel/goravel/issues/

✅ Checks

  • Added test cases for my code

Copilot AI review requested due to automatic review settings May 14, 2025 07:32
@almas-x almas-x requested a review from a team as a code owner May 14, 2025 07:32
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 adds support for custom spinner messages when executing commands. It introduces a variadic parameter in the ExecuteCommand function and updates the associated test to verify this new behavior.

  • Added a variadic message parameter to ExecuteCommand to allow custom spinner messages.
  • Updated execute_test.go to include a test case for executing a command with a custom spinner message.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
support/console/execute_test.go Added test case to assert spinner message handling
support/console/execute.go Refactored ExecuteCommand to accept optional custom spinner message

@codecov
Copy link

codecov bot commented May 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.40%. Comparing base (5c6bf41) to head (c88bd2a).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1031   +/-   ##
=======================================
  Coverage   70.40%   70.40%           
=======================================
  Files         176      176           
  Lines       12318    12321    +3     
=======================================
+ Hits         8672     8675    +3     
  Misses       3265     3265           
  Partials      381      381           

☔ 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.

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.

LGTM

@almas-x almas-x merged commit e88f45b into master May 14, 2025
16 of 18 checks passed
@almas-x almas-x deleted the almas/chore branch May 14, 2025 08:16
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