We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 374a570 commit 5de1213Copy full SHA for 5de1213
workspace/workspace.go
@@ -57,6 +57,28 @@ func (ws Workspace) PotentialExercises() ([]Exercise, error) {
57
continue
58
}
59
60
+ if topInfo.Name() == "teams" {
61
+ subInfos, err := ioutil.ReadDir(filepath.Join(ws.Dir, "teams"))
62
+ if err != nil {
63
+ return nil, err
64
+ }
65
+
66
+ for _, subInfo := range subInfos {
67
+ teamWs, err := New(filepath.Join(ws.Dir, "teams", subInfo.Name()))
68
69
70
71
72
+ teamExercises, err := teamWs.PotentialExercises()
73
74
75
76
77
+ exercises = append(exercises, teamExercises...)
78
79
+ continue
80
81
82
subInfos, err := ioutil.ReadDir(filepath.Join(ws.Dir, topInfo.Name()))
83
if err != nil {
84
return nil, err
0 commit comments