chore: gofmt
This commit is contained in:
parent
17ceeb3666
commit
1193989c56
6
main.go
6
main.go
|
@ -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"),
|
||||||
|
|
Loading…
Reference in a new issue