composer   3721

« earlier    

wodby/wordpress-composer: Composer template for WordPress projects.
Composer template for WordPress projects. Contribute to wodby/wordpress-composer development by creating an account on GitHub.
docker  wordpress  composer 
7 hours ago by garyleatherman
Alberto Jose González - Wikipedia
Wikipedia entry for influential video game composer.
music  chiptunes  console  videogames  composer 
yesterday by axodys
Dependency Management for PHP
composer  php 
9 days ago by alabra
Automated dependency updates for your Ruby, Python, JavaScript, PHP, .NET, Go, Elixir, Rust, Java and Elm.
PHP  automation  bundler  composer  dependencies  dependency  github  javascript  nodejs  npm  pip  python  ruby  service  update  yarn 
17 days ago by ngaloppo
Autocomplete Composer script names on the command line – Rob Allen's DevNotes
As I add more and more of my own script targets to my composer.json files, I find that it would be helpful to have tab autocomplete in bash. I asked on Twitter and didn’t get an immediate solution and as I had already done something similar for Phing, I rolled up my sleeves and wrote my own.

Start by creating a new bash completion file called composer in the bash_completion.d directory. This file needs executable permission. This directory can usually be found at /etc/bash_completion.d/, but on OS X using Homebrew, it’s at /usr/local/etc/bash_completion.d/ (assuming you have already installed with brew install bash-completion).

This is the file:


# Store this file in /etc/bash_completion.d/composer
_composer_scripts() {
    local cur prev
    _get_comp_words_by_ref -n : cur
    #  Complete the arguments to some of the commands.
    if [ "$prev" != "composer" ] ; then
        local opts=$(composer $prev -h --no-ansi | tr -cs '[=-=][:alpha:]_' '[\n*]' | grep '^-')
        COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
        return 0
    if [[ "$cur" == -* ]]; then
        COMPREPLY=( $( compgen -W '-h -q -v -V -n -d \
            --help --quiet --verbose --version --ansi --no-ansi \
            --no-interaction --profile --working-dir' -- "$cur" ) )
        local scripts=$(composer --no-ansi 2> /dev/null |  awk '/^ +[a-z]+/ { print $1 }')
        COMPREPLY=( $(compgen -W "${scripts}" -- ${cur}) )
    __ltrim_colon_completions "$cur"
    return 0
complete -F _composer_scripts composer

(Note that __ltrim_colon_completions is only in recent versions of bash-completion, so you may need to remove this line.)

Reading from the bottom, to get the list of commands to composer, we create a list of words for the -W option to compgen
bash  composer  linux  unix 
17 days ago by ndf

« earlier    

related tags

'only  'the  1  19plx  add  artist  autoload  automation  aws  bash  beanstalkd  beautify  bestpractices  block  blog  boilerplate  branca  break  breitkopf  breitkopfundhaertel  britell’s  browser  browsershot  build  buildtools  bundler  cache  callback  canada  cheatsheet  chiptunes  chrome  chromium  ci  classicalmusic  cloud-computing  codesniffer  collaboration  commandline  commands  computing  console  contemporarymusic  convert  courses  create  creative  crodfunding  custom  d8  data  dblooper  dependencies  dependency  design  designer  dev  development  devenv  devops  directories  docker  documentary  documentation  drupal  drupal8  drupaleasypodcast  drush  drush8  eight'  ennio  env  episodes  error  example  excellent  experimental  explanation  extension  female  file  film  filmmaking  firstinmusic  fix  flag  florencefever  florenceprice  framework  freeware  from  functions  game  gamedev  generator  git  github  global  guide  guitar  hateful  headless  helper  herstory  howto  ignore  indie  indiegogo  inside  install  installation  internet  interview  intl  issue  japan  javascript  json  lando  lang:en  laravel  laravel5  lgbt  library  lint  linux  list  local  lumen  manager  manual  mario  math  maven  microtonal  module  monitor  morricone  music  musician  music”:  namespace  network  networking  newmusic  nicholas  nodejs  normalize  npm  openssl  others'  package  packaging  packagist  pagagist  paint  patches  pdf  phing  php  php7.1  phpabl  phpcomposer  pip  platform  plugin  plugins  podcast  private-packages  private  problem  process  productivity  professional  project  puppeteer  python  queer  quentin  queue  radio  readings  recommendations  reference  rending  repo  report  repository  reqs  require-dev  requirements  ruby  says  sc  scope  screencast  screenshot  scripts  security  semantic-versioning  service  setup  singer  solution  sound  ssl  stackoverflow  steals  strategy  student  styleguide  submodule  system  tarantino  template  terminal  terraform  testing  themes  this  tidalcycles  timeline  tips  todo  tolearn  tool  tools  toread  totry  tounderstand  troubleshoot  troubleshooting  tutorial  typo3  typoscript  ubuntu  ubuntu16.04  ui  unix  update  video  videogame  videogames  vpn  web  wifi  windows  women  wordpress  workflow  writer  xampp  yarn  “let’s 

Copy this bookmark: