@devpad/cli 2.2.9 → 2.2.12
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.
- package/README.md +7 -4
- package/dist/index.js +1218 -791
- package/package.json +25 -25
package/README.md
CHANGED
|
@@ -36,10 +36,10 @@ echo 'export DEVPAD_API_KEY="your-api-key"' >> ~/.zshrc
|
|
|
36
36
|
|
|
37
37
|
### Environment Variables
|
|
38
38
|
|
|
39
|
-
| Variable
|
|
40
|
-
|
|
41
|
-
| `DEVPAD_API_KEY`
|
|
42
|
-
| `DEVPAD_BASE_URL` | No
|
|
39
|
+
| Variable | Required | Description |
|
|
40
|
+
| ----------------- | -------- | --------------------------------------------------- |
|
|
41
|
+
| `DEVPAD_API_KEY` | Yes | Your API key from devpad.tools/account |
|
|
42
|
+
| `DEVPAD_BASE_URL` | No | API base URL (default: https://devpad.tools/api/v1) |
|
|
43
43
|
|
|
44
44
|
## Usage
|
|
45
45
|
|
|
@@ -118,16 +118,19 @@ devpad tasks list | jq '.[] | select(.task.priority == "HIGH")'
|
|
|
118
118
|
## Examples
|
|
119
119
|
|
|
120
120
|
List all high-priority tasks:
|
|
121
|
+
|
|
121
122
|
```bash
|
|
122
123
|
devpad tasks list | jq '.[] | select(.task.priority == "HIGH") | .task.title'
|
|
123
124
|
```
|
|
124
125
|
|
|
125
126
|
Get task count per project:
|
|
127
|
+
|
|
126
128
|
```bash
|
|
127
129
|
devpad tasks list | jq 'group_by(.task.project_id) | map({project: .[0].task.project_id, count: length})'
|
|
128
130
|
```
|
|
129
131
|
|
|
130
132
|
Create a task and get its ID:
|
|
133
|
+
|
|
131
134
|
```bash
|
|
132
135
|
devpad tasks create --title "New feature" --project my-project | jq '.id'
|
|
133
136
|
```
|