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.
2 parents efa5490 + c31cddb commit 8086bf6Copy full SHA for 8086bf6
1 file changed
cmd/submit.go
@@ -9,6 +9,7 @@ import (
9
"github.com/codegangsta/cli"
10
"github.com/exercism/cli/api"
11
"github.com/exercism/cli/config"
12
+ "github.com/exercism/cli/paths"
13
)
14
15
// Submit posts an iteration to the API.
@@ -60,6 +61,10 @@ func Submit(ctx *cli.Context) {
60
61
log.Fatal("You cannot submit the README as a solution.")
62
}
63
64
+ if paths.IsDir(filename) {
65
+ log.Fatal("Please specify each file that should be submitted, e.g. `exercism submit file1 file2 file3`.")
66
+ }
67
+
68
file, err := filepath.Abs(filename)
69
if err != nil {
70
log.Fatal(err)
0 commit comments