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:
Lucas CHOLLET authored and Sönke Holz committed 2025-12-04 18:46:15 +01:00
1 parent b1e566181c
commit 956730b46d
1 file changed
-5
-5
View File
@@ -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;