-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement events for install / script exec
- Loading branch information
1 parent
423f91b
commit 27cf990
Showing
5 changed files
with
183 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package events | ||
|
||
type EventType string | ||
|
||
// Available event types. | ||
const ( | ||
// InstallStarting fires when an installation for a set of dotfiles has bugun | ||
// processing. | ||
InstallStarting EventType = "install_starting" | ||
|
||
// InstallDone fires when all dotfiles have been installed. No scripts | ||
// have been executed for the dotfiles yet. | ||
InstallDone EventType = "install_completed" | ||
|
||
// DotfileInstalled fires when a single dotfile has completed installation. | ||
// This does not indicate that the insatllation was not a no-op. | ||
DotfileInstalled EventType = "dotfile_installed" | ||
|
||
// ScriptExecStarted fires when script execution has begun. | ||
ScriptExecStarted EventType = "executing_all_scripts" | ||
|
||
// ScriptExecDone fires when script execution has begun. | ||
ScriptExecDone EventType = "executing_all_scripts" | ||
|
||
// ScriptExecuting fires when a dotfile script is being executed. | ||
ScriptExecuting EventType = "executing_script" | ||
|
||
// ScriptCompleted fires when a dotfiles script has completed execution. | ||
ScriptCompleted EventType = "script_completed" | ||
) | ||
|
||
// Event represents a output logging event. | ||
type Event struct { | ||
Type EventType | ||
Object interface{} | ||
} |
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
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