Skip to content

Commit

Permalink
minor change to language, some spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdevivo committed Dec 14, 2019
1 parent c0112d5 commit ffea107
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/commands/todos.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
var csvOutput bool

func init() {
todosCmd.Flags().BoolVar(&csvOutput, "csv-output", false, "specify whether or not output should be CSV")
todosCmd.Flags().BoolVar(&csvOutput, "csv-output", false, "specify whether or not output should be in CSV format")

rootCmd.AddCommand(todosCmd)
}
Expand Down Expand Up @@ -75,6 +75,7 @@ var todosCmd = &cobra.Command{
"text", "file_path", "start_line", "start_position", "end_line", "end_position", "author", "author_email", "author_sha", "author_time",
})
handleError(err, s)

for _, todo := range foundToDos {
err := w.Write([]string{
todo.String,
Expand All @@ -90,6 +91,7 @@ var todosCmd = &cobra.Command{
})
handleError(err, s)
}

// Write any buffered data to the underlying writer (standard output).
w.Flush()

Expand Down

0 comments on commit ffea107

Please sign in to comment.