Start process to away from bubbletea to a more simpler solution for this projects needs
This commit is contained in:
parent
cc6db38d74
commit
c1ea5e5163
10 changed files with 298 additions and 65 deletions
17
pkg/menu/next.go
Normal file
17
pkg/menu/next.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package menu
|
||||
|
||||
import "github.com/nexidian/gocliselect"
|
||||
|
||||
// Make a Next menu
|
||||
func Next(msg string) string {
|
||||
// Make the menu
|
||||
menu := gocliselect.NewMenu(msg)
|
||||
menu.AddItem("Next", "next")
|
||||
menu.AddItem("Go Back", "back")
|
||||
|
||||
// Display the menu
|
||||
choice := menu.Display()
|
||||
|
||||
// Return the value selected
|
||||
return choice
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue