change so intro questons dont run if dev
This commit is contained in:
@@ -129,16 +129,16 @@ func runStartCmd(cmd *cobra.Command, args []string) error {
|
|||||||
if err := newIntroModel().Run(); err != nil {
|
if err := newIntroModel().Run(); err != nil {
|
||||||
return returnIfUserQuit(err, "failed to run intro")
|
return returnIfUserQuit(err, "failed to run intro")
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
introAnswers, err := newIntroQuestionnaire().Run()
|
introAnswers, err := newIntroQuestionnaire().Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return returnIfUserQuit(err, "failed to run intro questionnaire")
|
return returnIfUserQuit(err, "failed to run intro questionnaire")
|
||||||
}
|
}
|
||||||
|
|
||||||
if app != nil && app.Stats != nil && introAnswers != nil {
|
if app != nil && app.Stats != nil && introAnswers != nil {
|
||||||
if err := app.Stats.RecordIntroQuestionnaireAnswers(introAnswers); err != nil {
|
if err := app.Stats.RecordIntroQuestionnaireAnswers(introAnswers); err != nil {
|
||||||
cmd.Printf("Failed to record intro questionnaire answers: %v\n", err)
|
cmd.Printf("Failed to record intro questionnaire answers: %v\n", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user