quickpassthrough/pkg/menu/next.go

21 lines
388 B
Go
Raw Normal View History

package menu
2023-11-08 11:27:21 -05:00
import (
"github.com/gookit/color"
"github.com/nexidian/gocliselect"
)
// Make a Next menu
func Next(msg string) string {
// Make the menu
menu := gocliselect.NewMenu(msg)
2023-11-08 11:27:21 -05:00
menu.AddItem(color.Bold.Sprint("Next"), "next")
menu.AddItem(color.Bold.Sprint("Go Back"), "back")
// Display the menu
choice := menu.Display()
// Return the value selected
return choice
}