diff --git a/plugins/truffle/README.md b/plugins/truffle/README.md new file mode 100644 index 000000000..65bd39a0e --- /dev/null +++ b/plugins/truffle/README.md @@ -0,0 +1,18 @@ +Truffle simple plugin to make commands autocomplition +===================================================== + +Supported commands +------------------ +- init +- compile +- migrate +- test +- exec +- develop +- console + +Installation nodes +------------------ +```bash +plugins=(... truffle) +``` diff --git a/plugins/truffle/_truffle b/plugins/truffle/_truffle new file mode 100644 index 000000000..7773822eb --- /dev/null +++ b/plugins/truffle/_truffle @@ -0,0 +1,16 @@ +#compdef truffle + +_arguments \ + '1: :->command' \ + '*: :->args' + +case $state in + command) + local commands=("init" "compile" "migrate" "test" "exec" "develop" "console") + _describe "command" commands + ;; + *) + _files + ;; +esac +