symfony-console-completion

Automatic tab-key completion for Symfony console application options, arguments and parameters

MIT License

Downloads
24.4M
Stars
420
Committers
18

Bot releases are hidden (Show)

symfony-console-completion - 0.13.0: Support Symfony 6.4+ and 7.x Latest Release

Published by stecman 4 months ago

No functional changes. Updates version constraint and some type hints as required.

symfony-console-completion - 0.12.2: Bump dependency versions to fix package incompatibility

Published by stecman over 1 year ago

symfony-console-completion - 0.12.1: Fix Symfony 6.3 compatibility

Published by stecman over 1 year ago

Bug fix release for return type incompatibility with Console >=6.3

symfony-console-completion - 0.12.0: Symfony 6, PHP 8 support

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.

symfony-console-completion - 0.11.0: Symfony 5 support

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.

symfony-console-completion - 0.10.1: Options before command name fixed

Published by stecman over 5 years ago

  • Fixes options appearing before the command name (eg. program -v cmdname) breaking the detection of the command that should be completed for (#83)
symfony-console-completion - 0.10.0: Multi-word / whitespace support in completions

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.

symfony-console-completion - 0.9.0: Isolation of CompletionCommand from user-defined global options

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.

symfony-console-completion - 0.8.0: Symfony 4 support

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:

  • Commands marked as hidden (symfony-console >= 3.2) are excluded from completion results
symfony-console-completion - 0.7.0: Support completing array type arguments multiple times

Published by stecman over 8 years ago

  • Support completing array arguments multiple times (#66)
  • Fixes single letters completing incorrectly in some cases (#65)
symfony-console-completion - 0.6.2: Allow use with Symfony Console 3.x

Published by stecman almost 9 years ago

symfony-console-completion - 0.6.1: compatibility fixes for specific environments

Published by stecman almost 9 years ago

  • Fixes completion broken under BASH on Centos 6.x (#57)
  • Fixes BASH mail check messages being written during completion with some combinations of BASH ≈3.2 and bash-completion ≈1.3 (#59)
  • Adds error message for BASH when registering completion without the bash-completion package (#58)
symfony-console-completion - 0.6.0: minor features and fixes

Published by stecman about 9 years ago

  • Sanitise program name when using in shell function name
  • Auto-complete arguments of built-in "help" and "list" commands
  • Allow _completion command to auto-complete it's arguments or their values
  • Support generation of hook that runs _completion command against the program being completed for at the shell function's runtime (--multiple)
symfony-console-completion - 0.5.1: Support command argument/option completion, when command short form is used

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.

symfony-console-completion - 0.5.0: CompletionAwareInterface

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.

symfony-console-completion - 0.4.4: add deferring path completion to the shell

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.

symfony-console-completion - 0.4.3: Use stable dependencies

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.

symfony-console-completion - Bug fix: fix --generate-hook option broken in 0.4.1

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.

symfony-console-completion - Compatibility fix: rename --shell option for compatibility with the console in Symfony Framework

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
symfony-console-completion - ZSH support

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).

Notes

  • 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.