Skip to content

Commit 06aa9ff

Browse files
carlrannabergclaude
andcommitted
feat: enhance add and update commands with stdin support and section editing
- Add stdin support to both add and update commands using '-' marker - Implement --details and --validation options for add command - Add section-based content editing (description, details, validation) - Standardize on --description flag across commands (remove --desc alias) - Update specifications to document new features and consistency changes - Fix Prettier/ESLint configuration conflict (trailing commas) - Improve test coverage for new functionality - Clean up temporary test files BREAKING CHANGE: --desc alias removed from update command, use --description instead 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e1e4252 commit 06aa9ff

40 files changed

Lines changed: 1182 additions & 677 deletions

.prettierrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"semi": true,
3-
"trailingComma": "es5",
3+
"trailingComma": "none",
44
"singleQuote": true,
55
"printWidth": 100,
66
"tabWidth": 2,

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ Update an existing task's properties with flexible options for metadata, content
175175
# Update status
176176
stm update 1 --status=done
177177

178-
# Update title
178+
# Update title
179179
stm update 1 --title="New task title"
180180

181181
# Update tags
@@ -196,7 +196,7 @@ stm update 42 --details "## Implementation Notes
196196

197197
# Update validation section
198198
stm update 42 --validation "✓ All tests pass
199-
✓ Code review completed
199+
✓ Code review completed
200200
✓ Manual QA approved"
201201
```
202202

@@ -227,7 +227,7 @@ EOF
227227
# Basic assignments
228228
stm update 42 status=done title="Completed feature implementation"
229229

230-
# Content section assignments
230+
# Content section assignments
231231
stm update 42 desc="Updated description" details="New implementation details"
232232

233233
# Array operations - adding tags
@@ -271,7 +271,7 @@ stm update 42 status=in-progress tags+=urgent,hotfix desc="Critical bug fix in p
271271

272272
- `--title, -t <title>`: Update task title
273273
- `--desc, -d <text>`: Update description section (use `-` for stdin)
274-
- `--details <text>`: Update details section (use `-` for stdin)
274+
- `--details <text>`: Update details section (use `-` for stdin)
275275
- `--validation <text>`: Update validation section (use `-` for stdin)
276276
- `--status, -s <status>`: Update status (pending, in-progress, done)
277277
- `--tags <tags>`: Set task tags (comma-separated)
@@ -292,7 +292,7 @@ stm update 42 status=in-progress tags+=urgent,hotfix desc="Critical bug fix in p
292292
- `tags`: Task tags (comma-separated for arrays)
293293
- `dependencies`: Task dependencies (comma-separated IDs)
294294
- `desc`: Description section content
295-
- `details`: Details section content
295+
- `details`: Details section content
296296
- `validation`: Validation section content
297297

298298
### `stm grep <pattern>`
@@ -453,7 +453,7 @@ stm add "Write unit tests" --tags=testing --priority=medium
453453
# Start working on API implementation with detailed plan
454454
stm update 2 status=in-progress --details "## Implementation Plan
455455
- Design REST endpoints
456-
- Set up authentication middleware
456+
- Set up authentication middleware
457457
- Implement CRUD operations
458458
- Add input validation"
459459

0 commit comments

Comments
 (0)