diff --git a/cmd/submit.go b/cmd/submit.go index 912176e91..66b2dfeb4 100644 --- a/cmd/submit.go +++ b/cmd/submit.go @@ -3,10 +3,8 @@ package cmd import ( "fmt" "log" - "math/rand" "os" "path/filepath" - "time" "github.com/codegangsta/cli" "github.com/exercism/cli/api" @@ -96,38 +94,5 @@ func Submit(ctx *cli.Context) { log.Fatal(err) } - msg := ` -Submitted %s in %s. -Your submission can be found online at %s -` - - if submission.Iteration == 1 { - msg += ` -To get the next exercise, run "exercism fetch" again. -` - rand.Seed(time.Now().UTC().UnixNano()) - phrases := []string{ - "For bonus points", - "Don't stop now: The fun's just begun", - "Some tips to continue", - } - msg += fmt.Sprintf("\n## %s\n", phrases[rand.Intn(len(phrases))]) - msg += tips - } - - fmt.Printf(msg, submission.Name, submission.Language, submission.URL) + fmt.Printf("%s - %s\n%s\n\n", submission.Language, submission.Name, submission.URL) } - -const tips = ` -Did you get the tests passing and the code clean? If you want to, these are some -additional things you could try: - -* Remove as much duplication as you possibly can. -* Optimize for readability, even if it means introducing duplication. -* If you've removed all the duplication, do you have a lot of conditionals? Try - finding ways to reduce or remove them. How does this affect your code's - readability? Its performance? - -Then please share your thoughts in a comment on the submission. Did this -experiment make the code better? Worse? Did you learn anything from it? -`