Commit Graph

28 Commits

Author SHA1 Message Date
Chih-Hsuan Yen 0d8db2fb32
_port: add new subcommands 'bump', 'diagnose' and 'reclaim'
Subcommand descriptions are from upstream man pages [1][2][3].

[1] https://github.com/macports/macports-base/blob/v2.6.0/doc/port-bump.1.txt
[2] https://github.com/macports/macports-base/blob/v2.6.0/doc/port-diagnose.1.txt
[3] https://github.com/macports/macports-base/blob/v2.6.0/doc/port-reclaim.1.txt
2019-10-04 17:58:55 +08:00
Eitan Adler 4b1e7502fd _port: add some missing values 2018-07-04 20:13:39 -07:00
Rob Speed 95ed61ffc2 DOCS: Fix references to "macOS" as "OS X", "Mac OS X", etc.
Apple renamed "Mac OS X" to "macOS" in 2016.

* Replace instances of "OSX"/"OS X"/etc. with "macOS" in comments to reflect the change.
* There are additional references to things like "osx" in functional code which are left unchanged.
* Grammatical changes due to the initial letter changing from a vowel to a consonant (o => m) in some places.
* Fix a unrelated minor grammatical issue.
2018-03-31 17:35:11 -04:00
Aljaž "g5pw" Srebrnič 383f6efa1f Add license header for _port 2016-05-01 13:16:19 +02:00
Patrik Hartlén 027943eda6 Fixed so that stat file now also works on OSX 2015-02-24 08:25:27 +01:00
Aljaž "g5pw" Srebrnič de9abc631e _port: Fix completion of next arguments 2014-06-26 17:58:36 +02:00
Aljaž "g5pw" Srebrnič e580a15f99 _port: complete more subcommands
Add completions for outdated, sync and selfupdate subcommands.
2014-06-26 17:58:01 +02:00
Aljaž "g5pw" Srebrnič 062e23c1bf No need to use the ->string format
If we have only one function to call fro completion, just call it. Also, remove
local declaration, since we don't use the ->string form.
2014-06-26 17:58:00 +02:00
Aljaž "g5pw" Srebrnič 8daa84f28f A better cache policy for _port
This compares modification times of the main PortIndex for all ports and
registry.db for installed ports.
2014-06-26 17:58:00 +02:00
Aljaž "g5pw" Srebrnič 04e2e85de8 Use the -q flag when calling port
The -q flag suppresses any output other than port names, eliminating the need to
further modify output.
2014-06-26 17:58:00 +02:00
Aljaž "g5pw" Srebrnič 77df22a969 No need to set cache policy in the main function
The caching policy style for _port can be set in _port_dispatch, as it is the
one that uses caching.
2014-06-26 17:57:59 +02:00
Aljaž "g5pw" Srebrnič 0b791a2f50 Add description to each port target
Also, remove targets used only in interactive mode, like 'exit' or 'cd'
2014-06-26 17:57:59 +02:00
Aljaž "g5pw" Srebrnič 8dc4b8a490 Better port upgrade completion
When upgrading, pseudo-portnames can be used. Also, add upgrade options to
completion choices.
2014-06-26 17:57:58 +02:00
Aljaž "g5pw" Srebrnič a2765bc27c Explicitly typeset arrays 2014-06-26 17:57:58 +02:00
Aljaž "g5pw" Srebrnič 42aace253f Use correct command to get installed ports
This fixes a copy-paste error when we completed any port name instead of
installed ones
2014-06-26 17:57:58 +02:00
Aljaž "g5pw" Srebrnič 8842103478 Use capitalized names in option description 2014-06-26 17:57:57 +02:00
Aljaž "g5pw" Srebrnič 8d9cdfc589 Add completion for rev-upgrade subcommand 2013-04-02 21:56:07 +02:00
Aljaž "g5pw" Srebrnič 7b412ed1ba Fix bug introduced in 3e6040e01
I can't call a function from _arguments
2013-04-02 21:53:38 +02:00
Aljaž "g5pw" Srebrnič 3e6040e01d Do not use state mechanism
Call a dispatch function instead, simplifying the nested select case.
2013-04-01 00:30:04 +02:00
Aljaž "g5pw" Srebrnič 54ed122d25 Set cache-policy before calling _arguments 2013-04-01 00:30:04 +02:00
Aljaž "g5pw" Srebrnič 810840e0e0 Remove unnecessary parenthesis escaping 2013-04-01 00:29:38 +02:00
Aljaž "g5pw" Srebrnič 1168563524 _port: add upgrade completions
Port upgrade completes only outdated ports.
2013-03-31 23:47:35 +02:00
Aljaž "g5pw" Srebrnič 4aa41e2267 Use message instead of guard
Use _message instead of _guard when completing the search pattern.
2013-03-31 23:47:35 +02:00
Aljaž "g5pw" Srebrnič f2cff3dbf3 Use own cache policy
This checks modification dates of the repository database and completion cache
and refreshes the latter if it is older than the database.
2013-03-24 22:31:08 +01:00
Aljaž "g5pw" Srebrnič d8a2e94fa0 Use native caching system 2013-03-24 22:29:51 +01:00
Aljaž "g5pw" Srebrnič 2224f3ae71 Moved port_select function to bottom 2013-03-24 22:26:32 +01:00
Aljaž "g5pw" Srebrnič 6483c0c3a1 Overhauled port command completion
Port command completion got smarter. It can now complete paths for the
provides subcommand, and complete pseudo-portnames.

It will complete all ports or only installed ones (for example, when
completing for the uninstall command).

It will complete the select subcommand with appropriate values.
2013-03-20 08:22:38 +01:00
Julien Nicoulaud 10ffeb0c15 [BREAKING CHANGE] Move compdefs to own directory (to ease packaging and
avoid bloating users fpath with unneeded files such as README.md)
2012-08-01 13:23:11 +02:00