Skip to content

Commit

Permalink
fix: Fixes list output without columns
Browse files Browse the repository at this point in the history
  • Loading branch information
dploeger committed Mar 7, 2023
1 parent 74167d6 commit 1ebc2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/outputTypes/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func (t *ListOutputType) Initialize(parser *argparse.Parser) error {
}

func (t *ListOutputType) Generate(calendar *ical.Calendar, writer io.Writer) error {
if t.columns == nil {
if t.columns == nil || len(*t.columns) == 0 {
t.columns = &[]string{"SUMMARY", "DTSTART", "DTEND", "DESCRIPTION"}
}
table := tablewriter.NewWriter(writer)
Expand Down

0 comments on commit 1ebc2d5

Please sign in to comment.