Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

Commit

Permalink
hound
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Aug 17, 2016
1 parent 18e453f commit 94fc3af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions event/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ type Event struct {
Error error
}

// Error returns an error-kind of event
func Error(err error) Event {
return Event{Error: err}
}

// Shell returns a shell-kind of event
func Shell(shell string) Event {
return Event{Shell: shell}
}

0 comments on commit 94fc3af

Please sign in to comment.