Skip to content

Commit c0112d5

Browse files
committed
include file path
1 parent 2776528 commit c0112d5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/commands/todos.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,13 @@ var todosCmd = &cobra.Command{
7272
if csvOutput {
7373
w := csv.NewWriter(os.Stdout)
7474
err := w.Write([]string{
75-
"text", "start_line", "start_position", "end_line", "end_position", "author", "author_email", "author_sha", "author_time",
75+
"text", "file_path", "start_line", "start_position", "end_line", "end_position", "author", "author_email", "author_sha", "author_time",
7676
})
7777
handleError(err, s)
7878
for _, todo := range foundToDos {
7979
err := w.Write([]string{
8080
todo.String,
81+
todo.FilePath,
8182
strconv.Itoa(todo.StartLocation.Line),
8283
strconv.Itoa(todo.StartLocation.Pos),
8384
strconv.Itoa(todo.EndLocation.Line),

0 commit comments

Comments
 (0)