summaryrefslogtreecommitdiff
path: root/cmd/gotosocial/servercommands.go
diff options
context:
space:
mode:
authorLibravatar Forest Johnson <forest.n.johnson@gmail.com>2021-11-24 16:01:38 +0000
committerLibravatar GitHub <noreply@github.com>2021-11-24 17:01:38 +0100
commitab316d22509ed6e601773a7ef66c0131aa8af24b (patch)
tree7adc35a2fc86529fa1b32229abf326037a4f6a6f /cmd/gotosocial/servercommands.go
parentFix streamed messages ending up in wrong timeline(s) (#325) (diff)
downloadgotosocial-ab316d22509ed6e601773a7ef66c0131aa8af24b.tar.xz
Fix broken defaults and broken flags (#314)v0.1.1
* start with a default config, not an empty config. * some data structures were present on Empty config but not Default config * the monkey patched CLIContext is working * remove print debugging log * make the behaviour of the flags consistent across all data types Conflicts: internal/config/config.go * try to fix accidentally broken test
Diffstat (limited to 'cmd/gotosocial/servercommands.go')
-rw-r--r--cmd/gotosocial/servercommands.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/gotosocial/servercommands.go b/cmd/gotosocial/servercommands.go
index 7a1692b79..fb6574216 100644
--- a/cmd/gotosocial/servercommands.go
+++ b/cmd/gotosocial/servercommands.go
@@ -23,7 +23,7 @@ import (
"github.com/urfave/cli/v2"
)
-func serverCommands() []*cli.Command {
+func serverCommands(allFlags []cli.Flag) []*cli.Command {
return []*cli.Command{
{
Name: "server",
@@ -33,7 +33,7 @@ func serverCommands() []*cli.Command {
Name: "start",
Usage: "start the gotosocial server",
Action: func(c *cli.Context) error {
- return runAction(c, server.Start)
+ return runAction(c, allFlags, server.Start)
},
},
},