Create Golang version devtool #7

Merged
oscar merged 25 commits from oscar-next into master 2022-12-29 20:34:22 +11:00
2 changed files with 1 additions and 2 deletions
Showing only changes of commit d3056fc0c9 - Show all commits

View File

@ -20,8 +20,6 @@ func main() {
tasks.NewCurlLookupTask(),
tasks.NewCodeSecurityScanTask(),
tasks.NewListDevToolCommandTask(config),
tasks.NewExitTask(),
}
tasks.ListCommandMenu(taskItems, "Which repository of action do you want operate:")

View File

@ -14,6 +14,7 @@ type Tasker interface {
// ListCommandMenu iterates task items to display them // on the screen as the menu options
func ListCommandMenu(taskItems []Tasker, menuDesp string) error {
taskItems = append(taskItems, NewExitTask())
for {
printMainMenu := func() {
taskNames := []string{}