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

[docs] clarify when to use message and when to use progress(..., permanent=True) #248

Open
lengau opened this issue Apr 12, 2024 · 1 comment
Assignees

Comments

@lengau
Copy link
Contributor

lengau commented Apr 12, 2024

What needs to get done

Clarify when a developer should use message or when they should use progress.

Example: Which is the correct way to show a warning?

Why it needs to get done

User confusion: canonical/craft-application#302 (comment)

@mr-cal
Copy link
Contributor

mr-cal commented Jun 12, 2024

As discussed as a team, emit.message() should only be used for the real output of a command.

For example, snapcraft plugins should use emit.progress(permanent=True) for the deprecation notice to use snapcraft list-plugins and emit.message() to print the list of plugins.

Assigning this to @tigarmo, who is going to clarify this in the docs.

Long-term, the correct path forward will be #256

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

No branches or pull requests

3 participants