2022-06-11 00:07:40 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2022-07-14 16:37:22 +02:00
|
|
|
"fmt"
|
|
|
|
|
2022-06-11 00:07:40 +02:00
|
|
|
"github.com/alecthomas/kong"
|
2022-07-06 18:51:12 +02:00
|
|
|
"github.com/charmbracelet/lipgloss"
|
|
|
|
"github.com/muesli/termenv"
|
2022-06-11 00:07:40 +02:00
|
|
|
)
|
|
|
|
|
2022-07-14 16:37:22 +02:00
|
|
|
var bubbleGumPink = lipgloss.NewStyle().Foreground(lipgloss.Color("212"))
|
|
|
|
|
2022-06-11 00:07:40 +02:00
|
|
|
func main() {
|
2022-07-06 18:51:12 +02:00
|
|
|
lipgloss.SetColorProfile(termenv.ANSI256)
|
2022-07-21 17:27:36 +02:00
|
|
|
|
2022-07-07 19:26:35 +02:00
|
|
|
gum := &Gum{}
|
2022-07-13 04:12:02 +02:00
|
|
|
ctx := kong.Parse(
|
|
|
|
gum,
|
2022-07-14 16:37:22 +02:00
|
|
|
kong.Description(fmt.Sprintf("Tasty bubble %s for your shell.", bubbleGumPink.Render("gum"))),
|
2022-06-11 00:07:40 +02:00
|
|
|
kong.UsageOnError(),
|
2022-07-13 04:12:02 +02:00
|
|
|
kong.ConfigureHelp(kong.HelpOptions{
|
|
|
|
Compact: true,
|
|
|
|
Summary: false,
|
|
|
|
}),
|
2022-07-21 17:27:36 +02:00
|
|
|
kong.Vars{
|
|
|
|
"defaultBackground": "",
|
|
|
|
"defaultForeground": "",
|
2022-07-26 21:43:26 +02:00
|
|
|
"defaultMargin": "0 0",
|
|
|
|
"defaultPadding": "0 0",
|
|
|
|
"defaultUnderline": "false",
|
2022-07-21 17:27:36 +02:00
|
|
|
},
|
2022-07-12 22:05:40 +02:00
|
|
|
)
|
2022-07-13 04:12:02 +02:00
|
|
|
ctx.Run()
|
2022-06-11 00:07:40 +02:00
|
|
|
}
|