Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[RFC] Implement new feature: Custom messages#166

Open
saulvaldelvira wants to merge 2 commits intorust-cli:master from
saulvaldelvira:master
Open

[RFC] Implement new feature: Custom messages #166
saulvaldelvira wants to merge 2 commits intorust-cli:master from
saulvaldelvira:master

Conversation

@saulvaldelvira
Copy link

@saulvaldelvira saulvaldelvira commented Jan 4, 2025
edited
Loading

This PR adds an option to provide a custom function to write the message.

I've also fixed a small typo in one of the tests.

I haven't added any documentation yet. If the maintainers like the idea, I'll gladly document this.

Related issue: #54

pinage404 reacted with thumbs up emoji
Make setup_panic accept a function as a parameter, that will be called
to write the message. This function receives a Write reference, an
optional Path and the Metadata. If no function is provided, use the
original function "write_msg"
Copy link
Collaborator

epage commented Jan 4, 2025

In our contributing documentation, we ask for problems and solutions to be worked out in issues and to leave PRs for code review.

Copy link
Author

In our contributing documentation, we ask for problems and solutions to be worked out in issues and to leave PRs for code review.

Hello! Sorry for that.
Should I add an issue to discuss this, and link to the PR?

Copy link
Collaborator

epage commented Jan 7, 2025

You could post you use case and idea to #54, it seems related enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Comments

AltStyle によって変換されたページ (->オリジナル) /