chore: gofmt

This commit is contained in:
Muhammad Nauman Raza 2024-03-30 12:50:56 +00:00
parent 17ceeb3666
commit 1193989c56
Signed by: devraza
GPG key ID: 91EAD6081011574B

View file

@ -4,10 +4,10 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/charmbracelet/bubbles/help"
"github.com/charmbracelet/bubbles/key"
tea "github.com/charmbracelet/bubbletea" tea "github.com/charmbracelet/bubbletea"
"github.com/charmbracelet/lipgloss" "github.com/charmbracelet/lipgloss"
"github.com/charmbracelet/bubbles/key"
"github.com/charmbracelet/bubbles/help"
"github.com/prometheus-community/pro-bing" "github.com/prometheus-community/pro-bing"
) )
@ -20,6 +20,7 @@ var (
type keyMap struct { type keyMap struct {
Quit key.Binding Quit key.Binding
} }
func (k keyMap) ShortHelp() []key.Binding { func (k keyMap) ShortHelp() []key.Binding {
return []key.Binding{k.Quit} return []key.Binding{k.Quit}
} }
@ -28,6 +29,7 @@ func (k keyMap) FullHelp() [][]key.Binding {
{k.Quit}, {k.Quit},
} }
} }
var keys = keyMap{ var keys = keyMap{
Quit: key.NewBinding( Quit: key.NewBinding(
key.WithKeys("q", "esc", "ctrl+c"), key.WithKeys("q", "esc", "ctrl+c"),