mirror of
https://github.com/anotherhadi/usbguard-tui.git
synced 2026-05-11 22:02:34 +02:00
09b054cc5c
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
24 lines
425 B
Go
24 lines
425 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
tea "github.com/charmbracelet/bubbletea"
|
|
"github.com/anotherhadi/usbguard-tui/internal/guard"
|
|
"github.com/anotherhadi/usbguard-tui/internal/ui"
|
|
)
|
|
|
|
func main() {
|
|
if err := guard.Check(); err != nil {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
|
|
p := tea.NewProgram(ui.New(), tea.WithAltScreen())
|
|
if _, err := p.Run(); err != nil {
|
|
fmt.Fprintln(os.Stderr, err)
|
|
os.Exit(1)
|
|
}
|
|
}
|