service-tools/service-monitor/main.go

28 lines
478 B
Go

package main
import (
"os"
"github.com/rivo/tview"
"github.com/spf13/cobra"
)
var (
RootCmd = &cobra.Command{
Use: "service-monitor",
Short: "service-monitor monitors systemd Units",
Long: "service-monitor is a convenient little tool to monitor systemd Units",
SilenceErrors: false,
SilenceUsage: true,
}
apperr error
app = tview.NewApplication()
)
func main() {
if err := RootCmd.Execute(); err != nil {
os.Exit(-1)
}
}