119119config_load config.ini
120120config_show
121121
122- # Or to iterate through keys manually
123- for key in "${!config[@]}" ; do
124- echo "$key = ${config[$key]}"
125- done
122+ ## Or to iterate through keys manually
123+ # for key in $(config_keys) ; do
124+ # echo "$key = ${config[$key]}"
125+ # done
126126` ` `
127127
128128# # `src/set_command.sh`
@@ -135,8 +135,8 @@ key="${args[key]}"
135135value="${args[value]}"
136136
137137config["$key"]="$value"
138- config_show
139138config_save saved.ini
139+ cat saved.ini
140140
141141` ` `
142142
@@ -170,15 +170,19 @@ Options:
170170
171171` ` `
172172
173- # ## `$ ./configly set hello world `
173+ # ## `$ ./configly set hello WORLD `
174174
175175` ` ` shell
176176bashly = works
177- hello = world
178- options.name = value for options.name
179- options.path = value for options.path
180- user.email = value for user.email
181- user.name = value for user.name
177+ hello = WORLD
178+
179+ [options]
180+ name = value for options.name
181+ path = value for options.path
182+
183+ [user]
184+ email = value for user.email
185+ name = value for user.name
182186
183187
184188` ` `
@@ -188,10 +192,14 @@ user.name = value for user.name
188192` ` ` shell
189193bashly = works
190194hello = world
191- options.name = value for options.name
192- options.path = value for options.path
193- user.email = value for user.email
194- user.name = Megatron
195+
196+ [options]
197+ name = value for options.name
198+ path = value for options.path
199+
200+ [user]
201+ email = value for user.email
202+ name = Megatron
195203
196204
197205` ` `
@@ -225,9 +233,13 @@ No such key: invalid_key
225233` ` ` shell
226234bashly = works
227235hello = world
228- options.name = value for options.name
229- options.path = value for options.path
230- user.name = value for user.name
236+
237+ [options]
238+ name = value for options.name
239+ path = value for options.path
240+
241+ [user]
242+ name = value for user.name
231243
232244
233245` ` `
@@ -241,12 +253,6 @@ options.name = value for options.name
241253options.path = value for options.path
242254user.email = value for user.email
243255user.name = value for user.name
244- bashly = works
245- hello = world
246- options.path = value for options.path
247- user.name = value for user.name
248- options.name = value for options.name
249- user.email = value for user.email
250256
251257
252258` ` `
0 commit comments