mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
feat(aurweb-config): add unset action and simplify
Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
199622c53f
commit
0e938209af
3 changed files with 78 additions and 26 deletions
|
@ -56,8 +56,13 @@ def get_section(section):
|
|||
return _get_parser()[section]
|
||||
|
||||
|
||||
def replace_key(section: str, option: str, value: Any) -> Any:
|
||||
def unset_option(section: str, option: str) -> None:
|
||||
_get_parser().remove_option(section, option)
|
||||
|
||||
|
||||
def set_option(section: str, option: str, value: Any) -> None:
|
||||
_get_parser().set(section, option, value)
|
||||
return value
|
||||
|
||||
|
||||
def save() -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue