mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-15 23:08:16 +08:00
truffle simple autocomplation was added
This commit is contained in:
parent
fe4b565986
commit
ce6ffdd961
18
plugins/truffle/README.md
Normal file
18
plugins/truffle/README.md
Normal 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
16
plugins/truffle/_truffle
Normal 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
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user