Skip to content
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

feat: inject console.log as parameter #26

Merged
merged 7 commits into from
Feb 5, 2024
Merged

Conversation

KSXGitHub
Copy link

No description provided.

@KSXGitHub KSXGitHub changed the title feat: dependency injection feat: inject console.log as parameter Feb 5, 2024
@KSXGitHub KSXGitHub marked this pull request as ready for review February 5, 2024 10:51
lib/index.js Outdated
*/
const log = (args, shell) => {
const logCompletion = (args, shell, log) => {
Copy link
Member

Choose a reason for hiding this comment

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

I don't think a breaking change is needed in this case. The function can remain log. The new argument can be logCompletion and it can be optional. If not set, console.log is used.

Copy link
Author

Choose a reason for hiding this comment

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

@zkochan zkochan merged commit fd7b4c2 into main Feb 5, 2024
12 checks passed
@KSXGitHub KSXGitHub deleted the dependency-injection branch February 5, 2024 11:20
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.

2 participants