Skip to content

Commit

Permalink
Adds a message to mllint's run command asking users whether they wo…
Browse files Browse the repository at this point in the history
…uld be so kind to fill in a feedback survey about mllint
  • Loading branch information
bvobart committed Jul 16, 2021
1 parent b5d637c commit a06595c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions commands/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func (rc *runCommand) RunLint(cmd *cobra.Command, args []string) error {
printFailed(rulesFailed)
}

printSurveyMessage()
return nil
}

Expand Down Expand Up @@ -217,3 +218,16 @@ func printFailed(rulesFailed int) {
func printSkipped(rulesDisabled int) {
shush(func() { color.Red("⏭️ rules skipped: \t%s", color.HiWhiteString("%d", rulesDisabled)) })
}

// BvOBart: As much as I hate programs asking me to fill in a survey for me, it's a necessity for being able to evaluate mllint for my thesis.
func printSurveyMessage() {
yellow := color.New(color.FgYellow)
code := color.New(color.FgHiWhite, color.Italic)
shush(func() {
fmt.Println("---")
yellow.Print("Thank you for using ", code.Sprint("mllint"), yellow.Sprintln(", I'm very interested to know how your experiences have been! 😊"))
yellow.Print("It would be of great help to me, ", code.Sprint("mllint"), yellow.Sprintln(" and particularly, my MSc thesis if you are able to spend 10 minutes of your time filling in this feedback survey for me:"))
yellow.Add(color.Italic).Println("➡️ https://forms.office.com/r/2xrZ7kXze2")
fmt.Println()
})
}

0 comments on commit a06595c

Please sign in to comment.