2017 © Pedro Peláez
 

library wp-cli-composer

Adds bash autocompletion for WP-CLI

image

wecodemore/wp-cli-composer

Adds bash autocompletion for WP-CLI

  • Wednesday, November 30, 2016
  • by wecodemore
  • Repository
  • 3 Watchers
  • 9 Stars
  • 347 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 8 % Grown

The README.md

CircleCI Test Status: Master Branch, (*1)

WP-CLI Bash Autocomplete

Usage as Composer post-package-install script. Adds bash autocompletion when WP-CLI gets installed using Composer. This package mostly is a convenience package that should make the build process easier., (*2)

This package needs 20 seconds to set up. Zero maintenance., (*3)

How To

Install WP-CLI using Composer. your project. Simply add WP-CLI on top of that:, (*4)

"require" : {
    "wp-cli/wp-cli"              : "~1.0",
    "wecodemore/wp-cli-composer" : "~2.0"
},

Then setup the script, (*5)

"scripts" : {
    "post-install-cmd" : [
        "WCM\\WPCLI\\Autocomplete\\Setup::install"
    ]
},

Finally you will need to define a pointer to tell the post package installer where wp-cli was installed to. In most cases this simply will be your users home directory/~, but you can define custom locations as well., (*6)

"extra" : {
    "wordpress-install-dir" : "wp",
    "bash-profile-dir"      : "/home/youruser"
}

FAQ

Q: Shall I install it from GitHub or from Packagist?

A: The package is on Packagist and auto updated from GitHub instantly (using WebHooks)., (*7)

Q: If I ran this twice by accident, do I then have the scripts appended twice?

A: No, the script is smart enough to care about that and appends itself only once., (*8)

Q: What happens if I'm not sure and the bash profile location is probably wrong?

A: The script does only check if the directory exists and not if you got a .bash_profile file there. If there is none, it will attempt to create one for you., (*9)

Q: What version should I refer to in my composer.json?

A: We use semantic versioning, so you will want to stay up to date with major versions., (*10)

Q: Should I visit Vienna?

A: Yes. You won't regret it. Ping me and I'll grab a coffee with you., (*11)

The Versions

30/11 2016

dev-master

9999999-dev https://github.com/wecodemore/wp-cli-composer

Adds bash autocompletion for WP-CLI

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress profile wp composer plugins bash wp-cli

30/11 2016

2.0.0

2.0.0.0 https://github.com/wecodemore/wp-cli-composer

Adds bash autocompletion for WP-CLI

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress profile wp composer plugins bash wp-cli

29/11 2016

dev-dev

dev-dev https://github.com/wecodemore/wp-cli-composer

Adds bash autocompletion for WP-CLI

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress profile wp composer plugins bash wp-cli

29/11 2016

1.1.0

1.1.0.0 https://github.com/wecodemore/wp-cli-composer

Adds bash autocompletion for WP-CLI

  Sources   Download

MIT

The Requires

 

The Development Requires

wordpress profile wp composer plugins bash wp-cli

15/10 2014

1.0.0

1.0.0.0 https://github.com/wecodemore/wp-cli-composer

Adds bash autocompletion for WP-CLI

  Sources   Download

MIT

The Requires

 

wordpress profile wp composer bash wp-cli