truffle simple autocomplation was added

This commit is contained in:
= 2023-07-10 11:53:30 +03:00
parent fe4b565986
commit ce6ffdd961
2 changed files with 34 additions and 0 deletions

18
plugins/truffle/README.md Normal file
View file

@ -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)
```

16
plugins/truffle/_truffle Normal file
View file

@ -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