Rename keys to groups

This commit is contained in:
Mark Felder 2020-11-25 17:49:36 -06:00
parent 92c23bfdec
commit ada073f251
2 changed files with 47 additions and 3 deletions

View file

@ -43,3 +43,47 @@ To delete transferred settings from database optional flag `-d` can be used. `<e
```sh ```sh
mix pleroma.config migrate_from_db [--env=<env>] [-d] mix pleroma.config migrate_from_db [--env=<env>] [-d]
``` ```
## Dump all of the config settings defined in the database
=== "OTP"
```sh
./bin/pleroma_ctl config dump
```
=== "From Source"
```sh
mix pleroma.config dump
```
## List individual configuration groups in the database
=== "OTP"
```sh
./bin/pleroma_ctl config groups
```
=== "From Source"
```sh
mix pleroma.config groups
```
## Dump the saved configuration values for a specific group
e.g., this shows all the settings under `:instance`
=== "OTP"
```sh
./bin/pleroma_ctl config dump instance
```
=== "From Source"
```sh
mix pleroma.config dump instance
```

View file

@ -64,7 +64,7 @@ defmodule Mix.Tasks.Pleroma.Config do
end end
end end
def run(["keylist"]) do def run(["groups"]) do
with true <- Pleroma.Config.get([:configurable_from_database]) do with true <- Pleroma.Config.get([:configurable_from_database]) do
start_pleroma() start_pleroma()
@ -96,7 +96,7 @@ defmodule Mix.Tasks.Pleroma.Config do
end end
end end
def run(["keydel" | dbkey]) do def run(["groupdel" | dbkey]) do
unless [] == dbkey do unless [] == dbkey do
with true <- Pleroma.Config.get([:configurable_from_database]) do with true <- Pleroma.Config.get([:configurable_from_database]) do
start_pleroma() start_pleroma()
@ -115,7 +115,7 @@ defmodule Mix.Tasks.Pleroma.Config do
end end
else else
shell_error( shell_error(
"You must provide a key to delete. Use the keylist command to get a list of valid keys." "You must provide a group to delete. Use the groups command to get a list of valid configDB groups."
) )
end end
end end