mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
config: Remove the ability to add a group
The implementation of this feature is inconsistent as `config DOMAIN GROUP` creates a group while `config DOMAIN GROUP KEY` prints the key. This feature should probably be implemented behind a flag like `--add`.
This commit is contained in:
1 parent
b1e566181c
commit
956730b46d
1 file changed
-5
@@ -35,11 +35,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (key.is_empty() && value_to_write.is_empty()) {
|
||||
Config::add_group(domain, group);
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!key.is_empty() && !value_to_write.is_empty()) {
|
||||
Config::write_string(domain, group, key, value_to_write);
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user