Edgewall Software
Modify

Opened 13 years ago

Last modified 5 years ago

#10492 new enhancement

bash tab completion extension for trac-admin

Reported by: dkg@… Owned by:
Priority: normal Milestone: next-major-releases
Component: admin/console Version:
Severity: normal Keywords:
Cc: gavenkoa@…, hans@… Branch:
Release Notes:
API Changes:
Internal Changes:

Description

This is a wishlist: it would be nice to have a bash tab-completion snippet that could complete the trac-admin subcommands directly in bash.

A baseline implementation could just be a hard-coded list; a fancier approach could interrogate the selected trac-admin instance to get a list of enabled sub-commands (which might be different due to installed plugins, enabled/disabled components, etc).

This feature request was originally reported to debian as http://bugs.debian.org/631259

Attachments (0)

Change History (4)

comment:1 by Remy Blank, 13 years ago

Milestone: next-major-0.1X

I have wanted that myself a few times.

comment:2 by gavenkoa, 13 years ago

Look to my attempt:

https://sourceforge.net/u/gavenkoa/exp/ci/027499b1a0c9d6d0fed153a25f371029806f3c83/tree/bash/completion/trac?force=True

Making a hard-coded list of command is fine, but when you need a list of user, permissions and another data from database you will understand that built-in client is the only one true solution as it is hard to make make queries to DB from CLI.

comment:3 by gavenkoa <gavenkoa@…>, 13 years ago

Cc: gavenkoa@… added

comment:4 by Hans Zauber <hans@…>, 11 years ago

Cc: hans@… added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.