Open lengau opened 3 months ago
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 https://github.com/canonical/craft-cli/issues/256
What needs to get done
Clarify when a developer should use
message
or when they should useprogress
.Example: Which is the correct way to show a warning?
Why it needs to get done
User confusion: https://github.com/canonical/craft-application/pull/302#discussion_r1562935131