From 94a1780ee0d020b8c949b11ffc3852b785270906 Mon Sep 17 00:00:00 2001 From: Rolf Koenders Date: Sat, 16 Aug 2014 17:59:23 +0200 Subject: [PATCH 1/3] Auto completion for some 'forever' commands --- plugins/forever/_forever | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 plugins/forever/_forever diff --git a/plugins/forever/_forever b/plugins/forever/_forever new file mode 100644 index 000000000..388d12162 --- /dev/null +++ b/plugins/forever/_forever @@ -0,0 +1,29 @@ +#compdef forever +#autoload + +# forever zsh completion + +_forever() { + + local -a commands + commands=( + 'start:Start SCRIPT as a daemon' + 'stop:Stop the daemon SCRIPT' + 'stopall:Stop all the running forever scripts' + 'restart:Restart the daemon SCRIPT' + 'restartall:Restart all the running forever scripts' + 'list:List all running forever scripts' + 'logs:Lists log files for all forever processes' + 'logs :Tails the logs for specified script' + 'config:Lists all forever user configuration' + 'cleanlogs:[CAREFUL] Deletes all historical forever log files' + ) + + if (( CURRENT == 2 )); then + _describe -t commands 'commands' commands + fi + + return 0 +} + +_forever From c8774ca5e9255f69ed4318f3ef7e24525ff041ba Mon Sep 17 00:00:00 2001 From: Rolf Koenders Date: Sat, 16 Aug 2014 18:06:34 +0200 Subject: [PATCH 2/3] Fixed wrong command --- plugins/forever/_forever | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/forever/_forever b/plugins/forever/_forever index 388d12162..8a092a93d 100644 --- a/plugins/forever/_forever +++ b/plugins/forever/_forever @@ -14,7 +14,7 @@ _forever() { 'restartall:Restart all the running forever scripts' 'list:List all running forever scripts' 'logs:Lists log files for all forever processes' - 'logs :Tails the logs for specified script' + 'logs: Tails the logs for specified script' 'config:Lists all forever user configuration' 'cleanlogs:[CAREFUL] Deletes all historical forever log files' ) From 04ad6c36d8db44708edbdda2700a3691a940d4bc Mon Sep 17 00:00:00 2001 From: Rolf Koenders Date: Mon, 1 Sep 2014 19:44:54 +0200 Subject: [PATCH 3/3] Adding readme file. --- plugins/forever/README | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 plugins/forever/README diff --git a/plugins/forever/README b/plugins/forever/README new file mode 100644 index 000000000..ed24abcb6 --- /dev/null +++ b/plugins/forever/README @@ -0,0 +1,10 @@ +# Forever + +---- + +### Maintainer: [Rolf Koenders](http://www.rolfkoenders.nl) + +This plugin provides some autocompletion for the Node tool [Forever](https://github.com/nodejitsu/forever) + +### Todo +I was thinking of adding some aliases and make the autocompletion a bit more smart. \ No newline at end of file