Opened 6 years ago

Last modified 4 years ago

#12221 new New feature

Allow custom management commands to define bash completion arguments

Reported by: ericholscher Owned by: nobody
Component: Core (Management commands) Version: 1.1
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: yes
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

What it says on the tin. Sent a proposal to -dev, this ticket is to track the progress of the patches.

http://groups.google.com/group/django-developers/browse_thread/thread/a076744059cace3f

Attachments (2)

completion_tests.diff (4.4 KB) - added by ericholscher 6 years ago.
Tests for current bash completion.
full_completion.diff (6.8 KB) - added by ericholscher 6 years ago.
All of the work I've done thus far for this ticket.

Download all attachments as: .zip

Change History (10)

Changed 6 years ago by ericholscher

Tests for current bash completion.

Changed 6 years ago by ericholscher

All of the work I've done thus far for this ticket.

comment:1 Changed 6 years ago by ericholscher

  • Has patch set
  • Needs documentation set
  • Needs tests unset
  • Patch needs improvement set

This would be nice to commit along with #9170, which gives some-what real docs for management commands. I will add docs to this patch that add to the ones on those, if it gets accepted.

comment:2 Changed 6 years ago by SmileyChris

Note: I've got a working branch that extends the current behavior to show apps for any management commands which subclasses AppCommand

comment:3 Changed 6 years ago by ericholscher

Hey Chris,

Thinking about trying to get a version of this into 1.2, if you could share your patch somewhere (here, or a pointer to github), that would be awesome. Thanks.

comment:4 Changed 6 years ago by SmileyChris

I got it working, but I can't vouch for whether it's all best practice - was just a bit of hacking for me: http://github.com/SmileyChris/django/commits/bash

comment:5 Changed 5 years ago by russellm

  • Triage Stage changed from Unreviewed to Accepted

comment:6 Changed 4 years ago by mattmcc

  • Component changed from Uncategorized to Core (Management commands)
  • Severity set to Normal
  • Type set to New feature

comment:7 Changed 3 years ago by aaugustin

  • UI/UX unset

Change UI/UX from NULL to False.

comment:8 Changed 3 years ago by aaugustin

  • Easy pickings unset

Change Easy pickings from NULL to False.

Note: See TracTickets for help on using tickets.
Back to Top