Fix CLI filter arguments #479
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
status:blocked
track:api
track:auto
track:core
track:deploy
track:infra
track:ui
type:cleanup
type:docs
type:epic
type:release
type:research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
barrettruth/delta!479
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/cli-filter-args"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The CLI documented positional filters for
delta task listanddelta export, but Commander rejected them because the commands did not declare[filters...]. While verifying that fix, the advertised--serverglobal flag was also not applied to client construction, which made local CLI smoke tests hit the configured/default server instead of the requested one.Solution
delta,delta task, anddelta task listinstead of reparsing argv through a subcommand.--serveroption into CLI config with flag precedence overDELTA_SERVER.--serverprecedence.Verification
nix develop --command pnpm exec biome check tests/cli/program.test.ts cli/src/task.ts cli/src/program.ts cli/src/help.ts cli/src/export.ts cli/src/lib/config.ts cli/man/delta.1.mdnix develop --command pnpm exec tsc --noEmitnix develop --command pnpm vitest run tests/cli/program.test.ts --reporter=verbosenix develop --command pnpm --dir cli run build:mannix develop --command pnpm --dir cli run build:npm--serverprecedencenix develop --command just ciLinked issue
None.