Bot releases are hidden (Show)
Published by stecman 4 months ago
No functional changes. Updates version constraint and some type hints as required.
Published by stecman over 1 year ago
Published by stecman over 1 year ago
Bug fix release for return type incompatibility with Console >=6.3
Published by stecman almost 2 years ago
Adds support for symfony/console
6.x versions, but removes older Symfony compatibility due to API changes upstream.
No changes have been made to the completion API.
For older versions of Symfony and PHP, you can continue to use version 0.11.0. If major new features are added, these may be back-ported and released separately.
Published by stecman over 4 years ago
Simple bump to requirements to enable use with symfony/console
5.x versions.
No changes are needed to upgrade from 0.10.x.
Published by stecman over 5 years ago
program -v cmdname
) breaking the detection of the command that should be completed for (#83)Published by stecman over 5 years ago
Adds support for quoted and escaped multi-word completions. No changes are required to upgrade from 0.9.0.
BASH users will need to regenerate/reload their shell hook for multi-word completions to work.
Published by stecman over 5 years ago
To avoid conflicts with application-level options defined by the library user, CompletionCommand
now ignores custom application options. Options from Symfony's base Application
class are retained.
No action is needed to upgrade to this version unless your subclass of CompletionCommand
has been modified to use global options defined by your application. In this case you will need to override CompletionCommand::filterApplicationOptions
to whitelist your options.
Published by stecman over 6 years ago
Adds Symfony Console 4.x to the versions supported. No changes are required to update to this version from 0.7.0
.
Other changes:
symfony-console
>= 3.2) are excluded from completion resultsPublished by stecman over 8 years ago
Published by stecman almost 9 years ago
Published by stecman almost 9 years ago
Published by stecman about 9 years ago
_completion
command to auto-complete it's arguments or their values_completion
command against the program being completed for at the shell function's runtime (--multiple
)Published by stecman over 9 years ago
This release fixes the completion handler to honour Symfony Console's default handling of unambiguous namespaced command abbreviations. The following are now equivalent (previously only the first would return results):
program deploy:run TAB
program d:r TAB
program de:r TAB
program d:ru TAB
Completions of command names that are not "namespaced" using colons are not affected by this change.
Thanks to @aik099 for this.
Published by stecman over 9 years ago
This release adds the ability to make a command responsible for its own completions with CompletionAwareInterface
, thanks to @aik099.
Published by stecman almost 10 years ago
This release adds ShellPathCompletion
- a class with a similar signature to Completion
that exits and triggers the calling shell's built-in path completion functionality when run.
The new functionality in this version depends on an update to shell hooks, so you'll need to re-initialise any hook after upgrading to this version. Existing hooks will continue to work correctly except with the deferred path completion.
Published by stecman almost 10 years ago
The minimum-stability
setting in composer.json
was previously set to "dev". The option has been removed from the file so that the default "stable" setting is used.
Published by stecman almost 10 years ago
This release is a re-fix of #6 thanks to @pjcdawkins as the fix released in 0.4.1 didn't function correctly. This fix reintroduces the shell selection option from 0.4.0 as --shell-type
, which doesn't conflict with the Symfony framework application.
Published by stecman almost 10 years ago
User interface BC break from 0.4.0: The --shell
option introduced yesterday in 0.4.0 has been removed in favour of an argument to the existing --generate-hook
option. This was required as the default console application in Symfony Framework has a global --shell
option which conflicts with the one in this command, causing a logic exception. Forcing a shell type is now done as follows:
$ myprogram _completion --generate-hook zsh
Published by stecman almost 10 years ago
This release adds a hook for using the module under ZSH, and makes it easy to add hooks for other shells. The appropriate hook is determined automatically at runtime, so no user profile changes should be needed for existing setups in most cases (see second note below).
The recommended way of parsing the completion hook in a shell has changed, though the old method will continue working for existing installations:
# New method (works under BASH and ZSH)
myprogram _completion --generate-hook | source /dev/stdin
# Old method (only works under BASH)
eval $(myprogram _completion --generate-hook)
In order to generate a script that will work in the current shell, the SHELL
environment variable is parsed. Since this is a setting rather than a representation of current state, the --shell
option may need to be specified in some circumstances.