$OUTPUT_KEYBOARD=true

This commit is contained in:
Bel LaPointe
2023-03-02 09:54:38 -07:00
parent 594bc39470
commit 78a5445679
3 changed files with 7 additions and 0 deletions

View File

@@ -11,5 +11,8 @@ type Output interface {
}
func New() Output {
if os.Getenv("OUTPUT_KEYBOARD") == "true" {
return NewKeyboard()
}
return NewWriter(os.Stderr)
}