[x] I have tested my changes against the dev branch (the latest developmental version), and this pull request is targeting that branch as a base
[x] I have tested my changes on Python 3.8 or higher
[x] I have ensured my code is formatted using Black
Description
This PR adds a new dependency on the configupdater package.
The new package enables updating the config and permissions ini files without destroying comments and other modifications made by users in these files.
There are two new commands:
config allows interacting with the options.ini file settings, with some limits to prevent abuse or risk to tokens.
setperms allows interacting with the permissions.ini file, with limits on built-in owner group.
Additionally, this PR converts the remaining file paths and some other hard-coded strings in permissions into definitions in the constants.py file.
dev
branch (the latest developmental version), and this pull request is targeting that branch as a baseDescription
This PR adds a new dependency on the
configupdater
package. The new package enables updating the config and permissions ini files without destroying comments and other modifications made by users in these files. There are two new commands:config
allows interacting with the options.ini file settings, with some limits to prevent abuse or risk to tokens.setperms
allows interacting with the permissions.ini file, with limits on built-in owner group.Additionally, this PR converts the remaining file paths and some other hard-coded strings in permissions into definitions in the
constants.py
file.Related issues
Should close #730 and #362