GothenburgBitFactory / GothenburgBitFactory/taskwarrior

Composibility: cannot easily express intent with `depends:`, `depends` doesn't take id ranges

Open
#3,281 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
6.1k
Forks
423
Avg merge
1d 19h
Merged PRs (30d)
11

Description

> Is this a bug, a feature request or a question?

Yes.

Context:
```
~ >_ t add a project:testproj
Created task 191.
The project 'testproj' has changed. Project 'testproj' is 0% complete (1 task remaining).
~ >_ t add b project:testproj
Created task 192.
The project 'testproj' has changed. Project 'testproj' is 0% complete (2 of 2 tasks remaining).
~ >_ t add will_be_blocked
Created task 193.
~ >_ t ids project:testproj
191-192
```

What I would like to do is:
```
t 193 mod depends:$(t ids project:tesetproj)
```
and what I mean by that is "project `testproj` needs to be done before `will_be_blocked` task" and I approximate this by "every task currently in `testproj` needs to be done before `will_be_blocked` task".

This doesn't work however, since `depends:` doesn't take id ranges

This works:
```
t 193 mod depends:$(t uuids project:tesetproj | tr ' ' ,)
```

which isn't that bad really, just took me a while-ish to peruse the `man` and experiment a bit.

My question is: do we want this to be the way?
If yes: would it make sense to document this kind of pattern?
If no: would it make sense for `depends:` to take id ranges as returned from `ids` command?

Or maybe I've missed something obvious and there's already a solution to this matter ;)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.