summaryrefslogtreecommitdiff
path: root/cmd/gotosocial/debug.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2022-05-16 14:13:19 +0200
committerLibravatar GitHub <noreply@github.com>2022-05-16 14:13:19 +0200
commitb915a418115c7873913bafbc0337b6050c473d6a (patch)
treec101d927d881d22d5320064ad8414919a646dda4 /cmd/gotosocial/debug.go
parent[docs] Mention `AmbientCapabilities=CAP_NET_BIND_SERVICE` in example systemd ... (diff)
downloadgotosocial-b915a418115c7873913bafbc0337b6050c473d6a.tar.xz
[feature] Basic config validation (#562)
* add optional config validation * clarify that host and protocol are required * add validation for host and protocol * pass prerunArgs as a struct (validate by default)
Diffstat (limited to 'cmd/gotosocial/debug.go')
-rw-r--r--cmd/gotosocial/debug.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gotosocial/debug.go b/cmd/gotosocial/debug.go
index e5a26b7fa..b1a1560ec 100644
--- a/cmd/gotosocial/debug.go
+++ b/cmd/gotosocial/debug.go
@@ -35,7 +35,7 @@ func debugCommands() *cobra.Command {
Use: "config",
Short: "print the collated config (derived from env, flag, and config file) to stdout",
PreRunE: func(cmd *cobra.Command, args []string) error {
- return preRun(cmd)
+ return preRun(preRunArgs{cmd: cmd, skipValidation: true}) // don't do validation for debugging config
},
RunE: func(cmd *cobra.Command, args []string) error {
return run(cmd.Context(), configaction.Config)