wpctl: add settings subcomand to show, delete or change settings
- Feb 14, 2024
-
-
Julian Bouzas authoredbebfc07d
-
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
Equinix is shutting down its operations with us on April 30, 2025. They have graciously supported us for almost 5 years, but all good things come to an end.
Given the time frame, it's going to be hard to make a smooth transition of the cluster to somewhere else (TBD). Please expect in the next months some hiccups in the service and probably at least a full week of downtime to transfer gitlab to a different place.
All help is appreciated.
This MR removes the clear-persistent
sub-command from the wpctl
tool, and add a new settings
command to show, delete or change settings. Here all the possible usages:
Show all settings and their saved values:
$ wpctl settings
Save all current setting values:
$ wpctl settings -s
Delete all current setting values:
$ wpctl settings -d
Show the value of a particular setting
$ wpctl settings <setting-name>
Save the current value of a particular setting
$ wpctl settings -s <setting-name>
Remove the saved value of a particular setting
$ wpctl settings -d <setting-name>
Set a particular setting to some value
$ wpctl settings <setting-name> <value>
Set a particular setting to some value and also save it
$ wpctl settings -s <setting-name> <value>
Note that if no settings are saved and we just started wireplumber, the command wpctl settings
won't show any settings because the sm-settings
metadata is empty (the configuration does not set anything by default). Ideally, it would be nice for wireplumber to set all the settings with their default values in sm-settings
metadata, even if those are not in the configuration.