forked from tmuras/moosh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_completion
90 lines (89 loc) · 2.2 KB
/
bash_completion
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
_moosh()
{
local cur prev opts
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
opts="category-export \
chkdatadir \
course-enrol \
report-concurrency \
cohort-unenrol \
activity-add \
block-manage \
category-create \
category-list \
category-move \
cohort-create \
cohort-enrol \
config-get \
config-plugins \
config-set \
maintenance-off \
maintenance-on \
course-backup \
course-bulk_unenrol_inactive_users \
course-config-set \
course-create \
course-delete \
course-enableselfenrol \
course-enrolbyname \
course-enrolleduser \
course-list \
course-reset \
course-restore \
course-restoreexisting \
course-unenrol \
gradebook-import \
data-stats \
cache-clear \
debug-off \
debug-on \
dev-versionbump \
form-add \
generate-availability \
generate-block \
generate-enrol \
generate-filemanager \
generate-form \
generate-gradeexport \
generate-gradereport \
generate-lang \
generate-local \
generate-messageoutput
generate-module \
generate-qtype \
generate-ws \
random-label \
file-delete \
file-list \
file-path \
forum-newdiscussion \
info \
info-plugins \
module-config \
module-manage \
module-reinstall \
role-create \
role-delete \
role-update-capability \
role-update-contextlevel \
sql-dump \
sql-run \
theme-info \
user-create \
user-delete \
user-getidbyname \
user-list \
user-mod \
webservice-call \
generate-moosh \
apachelog-parse \
perflog-parse \
download-moodle"
if [[ ${cur} == * ]] ; then
COMPREPLY=( $(compgen -W "${opts}" ${cur}) )
return 0
fi
}
complete -F _moosh moosh