Skip to content

Commit

Permalink
Update yearly report formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmci committed Sep 26, 2024
1 parent 4e13bfe commit c1fd47b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func main() {
defer db.Close()

if len(os.Args) < 2 {
fmt.Println("expected 'add', 'simple', 'list', 'update', 'done', 'edit', 'delete', 'load', or 'report' subcommands")
fmt.Println("expected 'add', 'activate', 'simple', 'list', 'update', 'done', 'edit', 'delete', 'load', or 'report' subcommands")
os.Exit(1)
}

Expand Down Expand Up @@ -51,7 +51,7 @@ func main() {
case "help":
handleHelpCommand()
default:
fmt.Println("expected 'add', 'simple', 'list', 'update', 'done', 'edit', 'delete', 'load', version', or 'report' subcommands")
fmt.Println("expected 'add', 'activate', 'simple', 'list', 'update', 'done', 'edit', 'delete', 'load', version', or 'report' subcommands")
os.Exit(1)
}
}
Expand Down
4 changes: 2 additions & 2 deletions reports.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ func generateYearlyCountReport() {

// Print each day's task count
if report.TaskCount == 0 {
fmt.Printf("%2s ", "··")
fmt.Printf("%3s", "··")
} else {
fmt.Printf(" %2s ", colorize(fmt.Sprintf("%d", report.TaskCount), "33"))
fmt.Printf(" %3s", colorize(fmt.Sprintf("%2d", report.TaskCount), "33"))
}
lastDay = report.Day
}
Expand Down

0 comments on commit c1fd47b

Please sign in to comment.