make sure repl works with new system

This commit is contained in:
Robin Olsen
2026-03-11 12:34:44 +01:00
parent f2413b68f5
commit 25bb20b7de
2 changed files with 33 additions and 5 deletions

View File

@@ -137,7 +137,10 @@ func runStartCmd(cmd *cobra.Command, args []string) error {
}
func taskLoop(ctx context.Context, application *task.App, surveyTasks map[string]task.Tasker, interfaces map[string]task.Interface) error {
iNames := task.ListInterfaces()
var iNames []string
for name := range interfaces {
iNames = append(iNames, name)
}
if len(iNames) == 0 {
return fmt.Errorf("no interfaces are available")