add intro questoinare to gather participant details
This commit is contained in:
@@ -130,6 +130,18 @@ func runStartCmd(cmd *cobra.Command, args []string) error {
|
||||
return returnIfUserQuit(err, "failed to run intro")
|
||||
}
|
||||
}
|
||||
|
||||
introAnswers, err := newIntroQuestionnaire().Run()
|
||||
if err != nil {
|
||||
return returnIfUserQuit(err, "failed to run intro questionnaire")
|
||||
}
|
||||
|
||||
if app != nil && app.Stats != nil && introAnswers != nil {
|
||||
if err := app.Stats.RecordIntroQuestionnaireAnswers(introAnswers); err != nil {
|
||||
cmd.Printf("Failed to record intro questionnaire answers: %v\n", err)
|
||||
}
|
||||
}
|
||||
|
||||
if err := taskLoop(cmd.Context(), app, surveyTasks, interfaces); err != nil {
|
||||
return returnIfUserQuit(err, "task loop failed")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user