Repository navigation
Conversation
Node taskbook 0.3.0 stores a task with an empty description for tb -t "@coding Fix the bug" because the quoted argument is taken whole as a board name. These tests pin how the Rust client behaves today: the same misparse happens, the empty-description guard rejects the bare case, and one extra argument gets a board name with spaces stored. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UhcvUKe8trrHnccV9XVYq5
A quoted argument starting with @ stays a single board name, which is the only CLI way to create a board containing spaces and the PowerShell workaround for @. Pin that with parser tests and fix the gaps around it: - Trim the parsed description before the empty check, so tb -t " " and tb --edit @1 " " no longer store blank descriptions. - Return a dedicated MissingDescription error instead of InvalidId(0), and skip re-printing it in main, so users no longer see "Invalid item ID: 0" after the missing-description message. - Document the quoting rules in docs/cli-reference.md. Refs taskbook-sh#69 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UhcvUKe8trrHnccV9XVYq5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This implements the proposal in #69. A quoted argument starting with @ stays a single board name, because it’s the only way to create a board containing spaces from the CLI, and it’s the PowerShell workaround from klaudiosinani/taskbook#41. The fix closes the gaps around that rule:
tb --edit @1 " "no longer blanks a description. This wasn’t in the issue; it’s the same hole.Testing
"@Work Projects"stays one board, and"Reply to @alice about the +1 p:3"stays literal.@boardarguments: board name absorbs the description, and whitespace-only tasks are stored #69 by hand againsttb --cli.