Opened 14 years ago

Closed 13 years ago

#27242 closed enhancement (fixed)

base Add action completion

Reported by: outis Owned by: macports-tickets@…
Priority: Normal Milestone: MacPorts 2.0.0
Component: base Version: 1.9.2
Keywords: Cc:
Port:

Description

Have you ever been too lazy to type out "dependents" as an action? Ever wish you could type "port b" to build a port and leave it at that? Wait no more, for action completion is now here.

The attached patch allows a user to specify the prefix of an action name rather than the full action name. If the given prefix is ambiguous (i.e. it's the prefix for more than one action), port informs the user which actions matches the prefix and does no further processing for that action. If no action matches, port informs the user the action is unrecognized (as it does currently).

Examples:

  port ec leaves # equivalent to `port echo leaves`
  port ve         # equivalent to `port version`
  port h        # equivalent to `port help`
  port i gawk # ambiguous: could be "install", "inactive", "info" or "installed"

The new behavior could use some testing, though I don't think it will cause any problems.

Attachments (1)

port.tcl-completion.patch (3.2 KB) - added by outis 14 years ago.
adds action completion

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by outis

Attachment: port.tcl-completion.patch added

adds action completion

comment:1 Changed 14 years ago by jmroot (Joshua Root)

Milestone: MacPorts 2.0.0

comment:2 Changed 13 years ago by jmroot (Joshua Root)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.