Skip to content

Commit

Permalink
fix formatting of help and feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
marianina8 committed Nov 2, 2023
1 parent bd7f77c commit de4ce2b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
5 changes: 5 additions & 0 deletions cmd/feedback.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ var feedbackCmd = &cobra.Command{
survey.Run()
},
}


func init() {
feedbackCmd.Flags().Bool("no-input", false, "disable interactivity and skip the survey")
}
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ options:
note:
The 'dashboard' output format is a terminal dashboard meant for human consumption only.
Need more details or facing issues? Refer to the official documentation at http://timetravel.com [does not exist yet].
Need more details or facing issues? Refer to the official documentation at http://timetravelcli.com
`
fmt.Println(helpMessage)
}
9 changes: 5 additions & 4 deletions survey/survey.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@ func Skip() {
}

func displayMenu() {
fmt.Println(" How was the journey? ")
fmt.Println("How was the journey? ")
fmt.Println(" ")
fmt.Println(" 1. Breathtaking ")
fmt.Println(" 2. Too fast! ")
fmt.Println(" 3. Can we go again? ")
fmt.Println(" ")
fmt.Println(" 1. Breathtaking ")
fmt.Println(" 2. Too fast! ")
fmt.Println(" 3. Can we go again? ")
fmt.Print("Enter your choice (1/2/3): ")
}

Expand Down

0 comments on commit de4ce2b

Please sign in to comment.