Capstone 2, a tasks CLI with storage

The second project is a task manager for the command line: a task with an id, a state and a due date; storage in a JSON file; subcommands behind a dispatch table; errors that become exit codes; tests with a temporary file and a fake store; a --json flag for other programs; and a release with a stamped version and a binary per platform.

121 Capstone 2: the task model a task with an id, a state and a due date, and the operations that keep it valid Open 122 Capstone 2: storage in a JSON file load and save, a file that does not exist yet, and a corrupt line that is skipped Open 123 Capstone 2: the commands subcommands, a dispatch table and a task list printed as a table Open 124 Capstone 2: errors and exit codes an error through the layers, a message for the user and a status the shell can read Open 125 Capstone 2: tests and a fake store the model, the storage and the commands, with a temporary file and a fake store per test Open 126 Capstone 2: JSON output a --json flag, an encoder and a stable field order for other programs Open 127 Capstone 2: benchmarks and profiles a benchmark of the store, the profile of a slow command and the fix it suggests Open 128 Capstone 2: release and cross-builds a version stamped with -ldflags, binaries per platform and a release archive Open

Lessons