Skip to content

du completion spec missing the --time long option #403

Closed

Description

@alternate-f

The du spec (command-signatures/json/du.json) only defines short options — there are no GNU long forms at all. du --time (show the last modification time of files/directories in the output) is commonly used alongside -h and has no completion today. Would be great to add it, ideally with the optional --time=WORD argument variants (atime, access, use, ctime, status) as suggestions.

Activity

  1. warp-factories commented on Sep 8, 2026

    @warp-factories
    Contributor

    Here's what I found while triaging this issue:

    Thanks for the report — confirmed.

    • The spec is at command-signatures/json/du.json. It currently defines only short options (-a, -c, -H, -h, -g, -k, -m, -I, -L, -r, -P, -d, -s, -x) — no GNU long forms at all, and --time is absent.
    • Local GNU du --help matches your description: bare --time shows the last modification time, and --time=WORD accepts atime / access / use / ctime / status.
    • The requested shape is already expressible in this repo's schema. The closest existing patterns are ls.json's --color and eza.json's --icons, both of which use args.isOptional with a fixed suggestions list for an optional =WORD value.
    • Related but separate: du signature missing --max-depth long option #372 asks for du --max-depth in the same file, and Define a documented convention for pairing short and long option names in specs #374 tracks a convention for pairing short and long option names. Neither covers --time, so this is not a duplicate.
    Maintainer details

    Classification

    enhancement — missing completion coverage for an existing GNU du long option (--time / --time=WORD). Not a runtime defect in Warp or the completion engine.

    Reproducibility

    high — verified directly in command-signatures/json/du.json (only short flags present, no --time) and against GNU coreutils du --help, which documents both bare --time and --time=WORD with the reported value set.

    Investigation

    Inspected command-signatures/json/du.json: options are exclusively short-form flags (-a -c -H -h -g -k -m -I -L -r -P -d -s -x); there is no --time entry and no --* long option of any kind. Confirmed GNU behavior via du --help, which also shows a neighboring --time-style=STYLE that is out of scope for this request. Schema expressibility confirmed against sibling specs: ls.json --color and eza.json --icons both model an optional =WORD argument via args.isOptional plus a fixed suggestions list, so no generator or schema work is needed. Root cause is incomplete handwritten long-option coverage for du. Confidence: high.

    Duplicate search

    Enumerated open issues in warpdotdev/command-signatures (excluding PRs and #403). Closest related: #372 (du missing --max-depth — same file, different option), #374 (documented convention for short/long option pairing — process/docs), and closed #366 (du --apparent-size, different option). None share both the same requested capability and substantive description overlap, so no duplicates are reported.

    Routing reasoning

    The issue touches handwritten command completion signatures for the coreutils du command — JSON option metadata in command-signatures/json/du.json — specifically adding a GNU long option with an optional enum argument. Owner resolved from the live ownership source at warpdotdev/warp-ownership/ownership-areas/app.md, ownership area ### Command Completions (Matches: "Command completions and suggestions triggered by slash or command entry, autocomplete specific to commands"), whose sole owner is @acarl005. Adjacent areas were considered and rejected: ### Completions and Bootstrap covers shell tab completions and shell startup rather than spec content, and ### Autosuggestion explicitly excludes command completions.

    Routing to @acarl005 to review and apply a gate label (ready-to-spec / ready-to-implement) if this should proceed.

    This is my automated analysis and may be incorrect. A maintainer will verify the details.

    Responding as Warp for OSS: Open session · View run

  2. added
    enhancement
    triaged
    repro:high
    good first issue
    on Sep 8, 2026
  3. added
    ready-to-spec
    on Sep 8, 2026
  4. warp-factories commented on Sep 8, 2026

    @warp-factories
    Contributor

    This issue has been marked ready for a specification. Community contributions are welcome — feel free to pick it up. A maintainer can also mention or assign @warp-factory to start automated work on it.

  5. alternate-f commented on Sep 8, 2026

    @alternate-f
    Author

    @warp-factory yeah can you spec this out for me please

  6. warp-factories commented on Sep 8, 2026

    @warp-factories
    Contributor

    Spec approved — the spec in #405 is approved and the spec stage is complete. I've removed ready-to-spec from this issue.

    The approved approach: add a single --time option to command-signatures/json/du.json with an optional WORD argument, following the existing ls.json --color pattern. The synonym spellings are grouped into two described suggestions — atime / access / use for last access time and ctime / status for last status-change time — so all five values stay insertable while each carries an accurate description. No schema, generator, or Rust changes are needed.

    Next step: implementation is still gated. A maintainer can apply ready-to-implement to this issue and assign the factory to start it. The implementation will land on the existing factory/gh403-du-time-spec branch and convert #405 into the implementation PR.

    Reasoning

    Approval bookkeeping for the plan-approved label applied to #405: confirmation comment posted on the spec PR, ready-to-spec removed here, and the spec branch and PR retained as the implementation artifacts. Implementation dispatch was checked and is blocked — check-stage-gate ... 403 implement reports the issue lacks ready-to-implement. The factory never applies that label itself. The two open questions raised during spec review (grouped alias suggestions, and --time-style=STYLE remaining out of scope) were resolved in favor of the spec's recommendations by the approval.

    This is my automated analysis and may be incorrect. A maintainer will verify the details.

    Responding as Warp for OSS: Open session · View run

  7. removed
    ready-to-spec
    on Sep 8, 2026
  8. added
    ready-to-implement
    on Sep 8, 2026
  9. warp-factories commented on Sep 8, 2026

    @warp-factories
    Contributor

    This issue has been marked ready for an implementation. Community contributions are welcome — feel free to pick it up. A maintainer can also mention or assign @warp-factory to start automated work on it.

  10. alternate-f commented on Sep 8, 2026

    @alternate-f
    Author

    @warp-factory can you implement this for me now

  11. warp-factories commented on Sep 8, 2026

    @warp-factories
    Contributor

    Implemented — #405 now carries the change and is ready for maintainer review.

    --time was added to command-signatures/json/du.json as a single option with an optional WORD argument, so bare du --time still works and du --time= offers all five documented values: atime / access / use (last access time) and ctime / status (last status-change time). Nothing else in the spec changed — the existing options and the file/folder argument are untouched, and no schema, generator, or Rust changes were needed.

    Validation: script/presubmit passes (JSON format check, cargo fmt --check, Clippy with warnings denied, and the full Rust test suite including the spec-deserialization test), and all 8 CI checks on the PR are green.

    The factory review is complete and found no blocking issues, so I've requested a review from @acarl005. Merging is a maintainer decision.

    Reasoning

    The implementation was added to the approved spec branch factory/gh403-du-time-spec, converting spec PR #405 into the implementation PR rather than opening a second one; the specs/GH403/ documents remain in its history. Delivery was gated throughout: implementation started only after check-stage-gate ... 403 implement returned exit 0, which required both the maintainer-applied ready-to-implement label and a factory mention. Escalation to a maintainer went through request-owner-review, which verified the factory's own accepted verdict before requesting the owner resolved from live warp-ownership (ownership-areas/app.md, area ### Command Completions). The PR remains a draft and the factory has not merged anything.

    This is my automated analysis and may be incorrect. A maintainer will verify the details.

    Responding as Warp for OSS: Open session · View run

  12. added a commit that references this issue on Sep 8, 2026
    bf2c572
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issueready-to-implementrepro:hightriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions