2022-06-11 01:07:40 +03:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/alecthomas/kong"
|
2022-07-06 19:51:12 +03:00
|
|
|
"github.com/charmbracelet/lipgloss"
|
|
|
|
"github.com/muesli/termenv"
|
2022-06-11 01:07:40 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2022-07-06 19:51:12 +03:00
|
|
|
lipgloss.SetColorProfile(termenv.ANSI256)
|
2022-07-07 20:26:35 +03:00
|
|
|
gum := &Gum{}
|
2022-07-13 05:12:02 +03:00
|
|
|
ctx := kong.Parse(
|
|
|
|
gum,
|
2022-07-07 20:26:35 +03:00
|
|
|
kong.Name("gum"),
|
|
|
|
kong.Description("Tasty Bubble Gum for your shell."),
|
2022-06-11 01:07:40 +03:00
|
|
|
kong.UsageOnError(),
|
2022-07-13 05:12:02 +03:00
|
|
|
kong.ConfigureHelp(kong.HelpOptions{
|
|
|
|
Compact: true,
|
|
|
|
Summary: false,
|
|
|
|
}),
|
|
|
|
kong.Vars{"defaultBackground": "", "defaultForeground": ""},
|
2022-07-12 23:05:40 +03:00
|
|
|
)
|
2022-07-13 05:12:02 +03:00
|
|
|
ctx.Run()
|
2022-06-11 01:07:40 +03:00
|
|
|
}
|