This commit is contained in:
Tiara Rodney 2026-03-15 03:02:41 +01:00
commit 932d4ad420
No known key found for this signature in database
GPG key ID: 5CD8EC1D46106723
46 changed files with 5800 additions and 0 deletions

View file

@ -0,0 +1,17 @@
import type { ArgumentsCamelCase } from "yargs"
import { CLICommand } from "../cli/CLICommand"
import { parseTodoFile } from "../file"
export class SprintsCommand extends CLICommand {
readonly name = "sprints"
readonly help = "List all sprints"
readonly description = "List all sprints in the TODO file"
async execute(args: ArgumentsCamelCase): Promise<number> {
const todo = await parseTodoFile()
for (const sprint of todo.sprints) {
console.log(`${sprint.name}: ${sprint.start}..${sprint.end}`)
}
return 0
}
}