-
Notifications
You must be signed in to change notification settings - Fork 17
/
gsettings.sh
155 lines (134 loc) · 2.94 KB
/
gsettings.sh
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
#!/usr/bin/env bash
# Automatic generated, DON'T MODIFY IT.
# @option --schemadir
# {{ gsettings list-schemas
# @cmd List installed schemas
# @option --schemadir
# @flag --print-paths
list-schemas() {
:;
}
# }} gsettings list-schemas
# {{ gsettings list-relocatable-schemas
# @cmd List relocatable schemas
# @option --schemadir
list-relocatable-schemas() {
:;
}
# }} gsettings list-relocatable-schemas
# {{ gsettings list-keys
# @cmd List keys in a schema
# @option --schemadir
list-keys() {
:;
}
# }} gsettings list-keys
# {{ gsettings list-children
# @cmd List children of a schema
# @option --schemadir
list-children() {
:;
}
# }} gsettings list-children
# {{ gsettings list-recursively
# @cmd List keys and values, recursively
# @option --schemadir
list-recursively() {
:;
}
# }} gsettings list-recursively
# {{ gsettings range
# @cmd Queries the range of a key
# @option --schemadir
# @arg schema-path[`_choice_schema_path`] <SCHEMA[:PATH]>
# @arg key[`_choice_key`]
range() {
:;
}
# }} gsettings range
# {{ gsettings describe
# @cmd Queries the description of a key
# @option --schemadir
# @arg schema-path[`_choice_schema_path`] <SCHEMA[:PATH]>
# @arg key[`_choice_key`]
describe() {
:;
}
# }} gsettings describe
# {{ gsettings get
# @cmd Get the value of a key
# @option --schemadir
# @arg schema-path[`_choice_schema_path`] <SCHEMA[:PATH]>
# @arg key[`_choice_key`]
get() {
:;
}
# }} gsettings get
# {{ gsettings set
# @cmd Set the value of a key
# @option --schemadir
# @arg schema-path[`_choice_schema_path`] <SCHEMA[:PATH]>
# @arg key[`_choice_key`]
# @arg value
set() {
:;
}
# }} gsettings set
# {{ gsettings reset
# @cmd Reset the value of a key
# @option --schemadir
# @arg schema-path[`_choice_schema_path`] <SCHEMA[:PATH]>
# @arg key[`_choice_key`]
reset() {
:;
}
# }} gsettings reset
# {{ gsettings reset-recursively
# @cmd Reset all values in a given schema
# @option --schemadir
reset-recursively() {
:;
}
# }} gsettings reset-recursively
# {{ gsettings writable
# @cmd Check if a key is writable
# @option --schemadir
# @arg schema-path[`_choice_schema_path`] <SCHEMA[:PATH]>
# @arg key[`_choice_key`]
writable() {
:;
}
# }} gsettings writable
# {{ gsettings monitor
# @cmd Watch for changes
# @option --schemadir
monitor() {
:;
}
# }} gsettings monitor
. "$ARGC_COMPLETIONS_ROOT/utils/_argc_utils.sh"
_choice_schema_path() {
_argc_util_mode_kv :
if [[ -z "$argc__kv_prefix" ]]; then
_choice_schema
_choice_relocatable_schema | _argc_util_transform suffix=: nospace
else
_argc_util_comp_path
fi
}
_choice_key() {
if [[ -z "$argc_schema_path" ]]; then
return
fi
_gsettings list-keys ${argc_schema_path%%:*}
}
_choice_relocatable_schema() {
_gsettings list-relocatable-schemas
}
_choice_schema() {
_gsettings list-schemas
}
_gsettings() {
gsettings $(_argc_util_param_select_options --schemadir) "$@"
}
command eval "$(argc --argc-eval "$0" "$@")"