From f146fbc4cc25bcdeab19a0c1055c839776cebff4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Fri, 27 Mar 2026 07:14:16 +0200 Subject: askcli: support add depends selectors --- docs/fish-completion.md | 1 + docs/usage.md | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/fish-completion.md b/docs/fish-completion.md index f51d362..d707b77 100644 --- a/docs/fish-completion.md +++ b/docs/fish-completion.md @@ -6,6 +6,7 @@ It completes the top-level `ask` subcommands and the nested `ask dep` operations It also completes task selectors for UUID-taking commands by reading pending tasks through `ask complete-uuids`, which uses the local alias cache for stable short IDs. Fish suggests each task's alias ID first and also keeps the raw UUID available as a fallback selector. Selector suggestions stop once a command has consumed its selector argument, and `ask dep add` / `ask dep rm` suggest selectors for both task positions. +When typing `ask add depends:...`, Fish also completes the comma-separated dependency selector list inside the `depends:` modifier. The script preserves the global `--json` flag. Load it into the current Fish session: diff --git a/docs/usage.md b/docs/usage.md index c43f406..c2fe055 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -136,6 +136,7 @@ cat SOMEFILE.txt | hexai --tps-simulation 20 | Subcommand | Description | |---|---| | `ask add "description"` | Create a new task and print its alias ID | +| `ask add depends:, "description"` | Create task with inline dependencies | | `ask add priority:H "description"` | Create task with priority | | `ask add +tag "description"` | Create task with tag | | `ask list` | List pending tasks only (alias-ID table) | @@ -168,6 +169,9 @@ cat SOMEFILE.txt | hexai --tps-simulation 20 # Create a task ask add priority:H "Implement new feature" +# Create a task with dependencies +ask add +cli depends:0,1 "Implement dependent feature" + # List tasks ask list +READY limit:5 -- cgit v1.2.3