Problem/Motivation

Drush DTK currently compresses 9 commands. A sweep of the Drush 13 command surface found more frequently-run, read-only commands whose native output is dominated by table chrome, unused columns, or nested YAML that AI agents rarely need:

  • updatedb:status (updbst): run around every module update; the type column is noise.
  • user:information (uinf): native table exposes 20+ fields including pass, signature, timezone, and roles.
  • migrate:messages (mmsg): natural companion to the already-compressed migrate:status; the destination-ids and source-ids-hash columns are noise.
  • field:base-info (fbi): natively prints all 13 columns (default value callbacks, selection handler…).
  • field:types, field:formatters, field:widgets: native default is YAML with nested settings / default_settings blobs per plugin.
  • deploy:hook-status: small table, chrome-only savings.

Proposed resolution

Add one INITIALIZE hook per command, reusing the existing compress() helper, with these defaults (applied only when the user hasn't chosen their own --fields/--format, and skippable via --no-ai-compress as usual):

Command Default applied
updatedb:status --fields=module,update_id,description, CSV
user:information --fields=uid,name,mail,user_status, CSV
migrate:messages --fields=level,source_ids,message, CSV
field:base-info --fields=field_name,field_type,required,cardinality, CSV
deploy:hook-status CSV
field:types --fields=id,label (YAML kept — see below)
field:formatters --fields=id,label,field_types (YAML kept)
field:widgets --fields=id,label,field_types (YAML kept)

Issue fork dtk-3608981

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

gxleano created an issue. See original summary.

gxleano’s picture

Assigned: gxleano » marcus_johansson
Status: Active » Needs review

  • gxleano committed d744787f on 1.0.x
    Issue #3608981: Add 9 more read-only drush commands
    
gxleano’s picture

Assigned: marcus_johansson » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

gxleano’s picture

Status: Fixed » Closed (fixed)