PHP Classes

File: vendor/wp-cli/wp-cli/utils/wp.fish

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Nolimitbuzz WP Theme   vendor/wp-cli/wp-cli/utils/wp.fish   Download  
File: vendor/wp-cli/wp-cli/utils/wp.fish
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Nolimitbuzz WP Theme
WordPress theme to used as start of new themes
Author: By
Last change:
Date: 27 days ago
Size: 882 bytes
 

Contents

Class file image Download
# Fish completion for the `wp` command # Check $fish_complete_path for possible install locations # Or check the documentation: # https://fishshell.com/docs/current/completions.html#where-to-put-completions function __wp_cli_complete # Get current buffer and cursor set --local COMP_LINE (commandline) set --local COMP_POINT (commandline -C) # Get valid completions from wp-cli set --local opts (wp cli completions --line=$COMP_LINE --point=$COMP_POINT) # wp-cli will indicate if it needs a file if string match -qe "<file> " -- $opts command ls -1 else # Remove unnecessary double spaces that wp-cli splits options with string trim -- $opts # `string` echoes each result on a newline. # Which is then collected for use with the `-a` flag for `complete`. end end complete -f -a "(__wp_cli_complete)" wp