mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Closes #43. Add CommandRunner module to the app.
CommandRunner allows you to define a terminal command and arguments, run it on a schedule, and view the output. Examples: ping -3 cisco.com
This commit is contained in:
@@ -2,7 +2,6 @@ package newrelic
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/olebedev/config"
|
||||
"github.com/senorprogrammer/wtf/wtf"
|
||||
@@ -39,8 +38,8 @@ func (widget *Widget) Refresh() {
|
||||
appName = app.Name
|
||||
}
|
||||
|
||||
widget.UpdateRefreshedAt()
|
||||
widget.View.SetTitle(fmt.Sprintf(" New Relic: [green]%s[white] ", appName))
|
||||
|
||||
widget.View.Clear()
|
||||
|
||||
if depErr != nil {
|
||||
@@ -50,8 +49,6 @@ func (widget *Widget) Refresh() {
|
||||
widget.View.SetWrap(false)
|
||||
fmt.Fprintf(widget.View, "%s", widget.contentFrom(deploys))
|
||||
}
|
||||
|
||||
widget.RefreshedAt = time.Now()
|
||||
}
|
||||
|
||||
/* -------------------- Unexported Functions -------------------- */
|
||||
|
||||
Reference in New Issue
Block a user