Debian Codegraph @

deps/clic/src/clic-config-edit.ads

raw
1 package CLIC.Config.Edit is
2
3 function Unset (Path : String;
4 Key : Config_Key)
5 return Boolean;
6 -- Unset/Remove a key from a configuration file. Return True in case of
7 -- success or False when the configuration file or the key don't exist.
8
9 function Set (Path : String;
10 Key : Config_Key;
11 Value : String;
12 Check : Check_Import := null)
13 return Boolean;
14 -- Set a key in a configuration file. Return True in case of success or
15 -- False when the value is invalid or rejected by the Check function.
16 --
17 -- When a Check function is provided, it will be called on the
18 -- config key/value. If Check return False, Set returns False and the
19 -- configuration file is not modified. In addition the Check function
20 -- can print an error message explaining why the key/value is invalid.
21
22 end CLIC.Config.Edit;