-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_odoo
More file actions
33 lines (29 loc) · 807 Bytes
/
_odoo
File metadata and controls
33 lines (29 loc) · 807 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#compdef odoo
_odoo() {
local -a commands
commands=(
'create:Create or overwrite a new database'
'database:Open the database manager'
'drop:Drop the given database'
'help:Display list of available commands'
'memory:Fetch logs and plot performance and memory usage'
'server:Start the given database (default)'
'shell:Opens the database Python environment in CLI'
'test:Run Python tests'
'tooling:Toggle JavaScript tooling'
)
# If completing the first argument
if (( CURRENT == 2 )); then
_describe 'command' commands
return
fi
# Subcommand-specific completion
case $words[2] in
server)
_arguments \
'-h[Show help for the server command]' \
'--init[Initialize with file paths]:file:_files'
;;
esac
}
_odoo "$@"