task: add exit task as the default task
This commit is contained in:
parent
a0e852feab
commit
d3056fc0c9
@ -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:")
|
||||
|
@ -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{}
|
||||
|
Loading…
Reference in New Issue
Block a user