Skip to content

feat(cli): add --sound flag for task completion#1157

Merged
vrcprl merged 8 commits intolingodotdev:mainfrom
ankur0904:feat/cli-play-music
Sep 10, 2025
Merged

feat(cli): add --sound flag for task completion#1157
vrcprl merged 8 commits intolingodotdev:mainfrom
ankur0904:feat/cli-play-music

Conversation

@ankur0904
Copy link
Copy Markdown
Contributor

After all main task will completed it make the success sound

Main Task

  • setup()
  • plan()
  • execute()
  • renderSummary()

If any of the task failed or the run command will fail it'll generate the failure sound.

I have taken the music file from here

#1079

@ankur0904 ankur0904 marked this pull request as draft September 6, 2025 17:14
Copy link
Copy Markdown
Contributor

@The-Best-Codes The-Best-Codes left a comment

Choose a reason for hiding this comment

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

Looking good so far! There is one big issue that I didn't leave a review on here, since it's a thing you missed rather than a thing you changed. I'll put it in a separate comment for you 😀

Comment thread packages/cli/src/cli/cmd/run/index.ts Outdated
"Play sound on completion, partially completion and failed of the task"
)
.action(async (args) => {
// log the args in terminal
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is there a specific reason you added this, or was it just for debugging during development? If you're done with development and it wasn't there before, maybe remove it :)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is probably waaay too picky of me:
Compared to the success sound effect, this sound effect is really quiet. I think it would be nicer if I could hear it a little better.

@The-Best-Codes
Copy link
Copy Markdown
Contributor

In my review, I mentioned a big issue. Here are the details:

The sound assets won't be published to npm, since files is explicitly set in the package.json.

"files": [
"bin",
"build"
],

image

To fix this, add assets to the files list in the package.json.

@ankur0904
Copy link
Copy Markdown
Contributor Author

@The-Best-Codes
Hi, thank you for reviewing the PR. I have addressed all the changes you mentioned in your review. :)

@ankur0904 ankur0904 marked this pull request as ready for review September 7, 2025 06:27
@vrcprl vrcprl self-requested a review September 9, 2025 23:58
Copy link
Copy Markdown
Contributor

@vrcprl vrcprl left a comment

Choose a reason for hiding this comment

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

Looks great! I really enjoyed testing it.

@vrcprl vrcprl merged commit 100b141 into lingodotdev:main Sep 10, 2025
2 checks passed
@ankur0904
Copy link
Copy Markdown
Contributor Author

@vrcprl @The-Best-Codes
Thank you so much for merging the PR. I really enjoyed working in this issue.

17prateek12 pushed a commit to 17prateek12/lingo.dev that referenced this pull request Jan 23, 2026
* feat(cli): add --sound flag for task completion

* fix: address review comments

* style: format code with prettier

* chore: formatting

* chore: changeset

---------

Co-authored-by: Veronica Pril <veranika.prilutskaya@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants