aboutsummaryrefslogtreecommitdiff
path: root/node_modules/gulp/completion
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/gulp/completion')
-rw-r--r--node_modules/gulp/completion/README.md20
-rw-r--r--node_modules/gulp/completion/bash27
-rw-r--r--node_modules/gulp/completion/fish10
-rw-r--r--node_modules/gulp/completion/powershell61
-rw-r--r--node_modules/gulp/completion/zsh25
5 files changed, 0 insertions, 143 deletions
diff --git a/node_modules/gulp/completion/README.md b/node_modules/gulp/completion/README.md
deleted file mode 100644
index c0e8c9133..000000000
--- a/node_modules/gulp/completion/README.md
+++ /dev/null
@@ -1,20 +0,0 @@
-# Completion for gulp
-> Thanks to grunt team and Tyler Kellen
-
-To enable tasks auto-completion in shell you should add `eval "$(gulp --completion=shell)"` in your `.shellrc` file.
-
-## Bash
-
-Add `eval "$(gulp --completion=bash)"` to `~/.bashrc`.
-
-## Zsh
-
-Add `eval "$(gulp --completion=zsh)"` to `~/.zshrc`.
-
-## Powershell
-
-Add `Invoke-Expression ((gulp --completion=powershell) -join [System.Environment]::NewLine)` to `$PROFILE`.
-
-## Fish
-
-Add `gulp --completion=fish | source` to `~/.config/fish/config.fish`.
diff --git a/node_modules/gulp/completion/bash b/node_modules/gulp/completion/bash
deleted file mode 100644
index 704c27c13..000000000
--- a/node_modules/gulp/completion/bash
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/bin/bash
-
-# Borrowed from grunt-cli
-# http://gruntjs.com/
-#
-# Copyright (c) 2012 Tyler Kellen, contributors
-# Licensed under the MIT license.
-# https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
-
-# Usage:
-#
-# To enable bash <tab> completion for gulp, add the following line (minus the
-# leading #, which is the bash comment character) to your ~/.bashrc file:
-#
-# eval "$(gulp --completion=bash)"
-
-# Enable bash autocompletion.
-function _gulp_completions() {
- # The currently-being-completed word.
- local cur="${COMP_WORDS[COMP_CWORD]}"
- #Grab tasks
- local compls=$(gulp --tasks-simple)
- # Tell complete what stuff to show.
- COMPREPLY=($(compgen -W "$compls" -- "$cur"))
-}
-
-complete -o default -F _gulp_completions gulp
diff --git a/node_modules/gulp/completion/fish b/node_modules/gulp/completion/fish
deleted file mode 100644
index f27f2248b..000000000
--- a/node_modules/gulp/completion/fish
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/usr/bin/env fish
-
-# Usage:
-#
-# To enable fish <tab> completion for gulp, add the following line to
-# your ~/.config/fish/config.fish file:
-#
-# gulp --completion=fish | source
-
-complete -c gulp -a "(gulp --tasks-simple)" -f
diff --git a/node_modules/gulp/completion/powershell b/node_modules/gulp/completion/powershell
deleted file mode 100644
index 08ec4382e..000000000
--- a/node_modules/gulp/completion/powershell
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright (c) 2014 Jason Jarrett
-#
-# Tab completion for the `gulp`
-#
-# Usage:
-#
-# To enable powershell <tab> completion for gulp you need to be running
-# at least PowerShell v3 or greater and add the below to your $PROFILE
-#
-# Invoke-Expression ((gulp --completion=powershell) -join [System.Environment]::NewLine)
-#
-#
-
-$gulp_completion_Process = {
- param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter)
-
-
- # Load up an assembly to read the gulpfile's sha1
- if(-not $global:GulpSHA1Managed) {
- [Reflection.Assembly]::LoadWithPartialName("System.Security") | out-null
- $global:GulpSHA1Managed = new-Object System.Security.Cryptography.SHA1Managed
- }
-
- # setup a global (in-memory) cache
- if(-not $global:GulpfileShaCache) {
- $global:GulpfileShaCache = @{};
- }
-
- $cache = $global:GulpfileShaCache;
-
- # Get the gulpfile's sha1
- $sha1gulpFile = (resolve-path gulpfile.js -ErrorAction Ignore | %{
- $file = [System.IO.File]::Open($_.Path, "open", "read")
- [string]::join('', ($global:GulpSHA1Managed.ComputeHash($file) | %{ $_.ToString("x2") }))
- $file.Dispose()
- })
-
- # lookup the sha1 for previously cached task lists.
- if($cache.ContainsKey($sha1gulpFile)){
- $tasks = $cache[$sha1gulpFile];
- } else {
- $tasks = (gulp --tasks-simple).split("`n");
- $cache[$sha1gulpFile] = $tasks;
- }
-
-
- $tasks |
- where { $_.startswith($commandName) }
- Sort-Object |
- foreach { New-Object System.Management.Automation.CompletionResult $_, $_, 'ParameterValue', ('{0}' -f $_) }
-}
-
-if (-not $global:options) {
- $global:options = @{
- CustomArgumentCompleters = @{};
- NativeArgumentCompleters = @{}
- }
-}
-
-$global:options['NativeArgumentCompleters']['gulp'] = $gulp_completion_Process
-$function:tabexpansion2 = $function:tabexpansion2 -replace 'End\r\n{','End { if ($null -ne $options) { $options += $global:options} else {$options = $global:options}'
diff --git a/node_modules/gulp/completion/zsh b/node_modules/gulp/completion/zsh
deleted file mode 100644
index 8169b22d7..000000000
--- a/node_modules/gulp/completion/zsh
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/zsh
-
-# Borrowed from grunt-cli
-# http://gruntjs.com/
-#
-# Copyright (c) 2012 Tyler Kellen, contributors
-# Licensed under the MIT license.
-# https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
-
-# Usage:
-#
-# To enable zsh <tab> completion for gulp, add the following line (minus the
-# leading #, which is the zsh comment character) to your ~/.zshrc file:
-#
-# eval "$(gulp --completion=zsh)"
-
-# Enable zsh autocompletion.
-function _gulp_completion() {
- # Grab tasks
- compls=$(gulp --tasks-simple)
- completions=(${=compls})
- compadd -- $completions
-}
-
-compdef _gulp_completion gulp