flowcat 1.9.0 → 1.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +9 -1
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -17302,6 +17302,13 @@ var runListCommand = async ({
17302
17302
  throw new Error(`Invalid status or scope: ${resolvedStatus}`);
17303
17303
  }
17304
17304
  }
17305
+ if (includeUnassigned && (!resolvedStatus || !isListScope(resolvedStatus))) {
17306
+ if (command) {
17307
+ helpers.failWithHelp(command, "--include-unassigned can only be used with date scopes (today, yesterday, this_week, last_week)");
17308
+ return;
17309
+ }
17310
+ throw new Error("--include-unassigned can only be used with date scopes (today, yesterday, this_week, last_week)");
17311
+ }
17305
17312
  if (resolvedStatus && isListScope(resolvedStatus)) {
17306
17313
  const dates = listDatesForScope(resolvedStatus);
17307
17314
  const tasks = await listAllTasks(workspaceRoot);
@@ -17338,7 +17345,7 @@ var runListCommand = async ({
17338
17345
  helpers.printLines(storedEntries.map(buildLine));
17339
17346
  };
17340
17347
  var registerListCommand = (program2, helpers) => {
17341
- program2.command("list").description("list tasks").argument("[status]", "task status or date scope").option("-u, --include-unassigned", "include tasks that were unassigned (for date scopes)").action(helpers.handleAction(async (status, options, command) => {
17348
+ program2.command("list").description("list tasks").argument("[status]", "task status (backlog, active, paused, completed, cancelled) or date scope (today, yesterday, this_week, last_week)").option("-u, --include-unassigned", "include tasks that were unassigned (for date scopes)").action(helpers.handleAction(async (status, options, command) => {
17342
17349
  await runListCommand({
17343
17350
  helpers,
17344
17351
  status,
@@ -18560,6 +18567,7 @@ var commandExamples = {
18560
18567
  "flowcat list",
18561
18568
  "flowcat list active",
18562
18569
  "flowcat list today",
18570
+ "flowcat list today --include-unassigned",
18563
18571
  "flowcat list backlog --json"
18564
18572
  ],
18565
18573
  show: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flowcat",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",