-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ RawError, RawActivity simplified. (#458)
This PR simplifies the API for use cases for which the _new_ RawError() and RawActivity() were meant to support. Especially the RawActivity(). The main case here is to report multi-line activity. In this case the activity is reporting something followed by multiple lines. The first line is the-activity followed by multiple-lines of detail. This PR simplifies this more than the RawActivity() because it can be achieved in (1) addon.Activity() call. For example: ``` addon.Activity("Doing something with a list of things:\n%s", "One\nTwo\nThree") ``` Results in: ``` - Doing something with a list of things: - > One - > Two - > Three ``` The Error and RawError is achieved by reversing which is the edge case. Errorf() is added (instead of RawError) which makes for a more intuitive API. Signed-off-by: Jeff Ortel <jortel@redhat.com>
- Loading branch information
Showing
2 changed files
with
30 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters