plugin - SetState no longer resets additional text
This commit is contained in:
parent
fc5f4c1638
commit
ac1eacd2a5
1 changed files with 1 additions and 2 deletions
|
@ -51,11 +51,10 @@ func New(name string) *Plugin {
|
|||
}
|
||||
|
||||
// SetState sets the plugin's output code to `status` and its message to
|
||||
// the specified `message`. Any extra text is cleared.
|
||||
// the specified `message`.
|
||||
func (p *Plugin) SetState(status Status, message string) {
|
||||
p.status = status
|
||||
p.message = message
|
||||
p.extraText = nil
|
||||
}
|
||||
|
||||
// AddLine adds the specified string to the extra output text buffer.
|
||||
|
|
Loading…
Reference in a new issue