summaryrefslogtreecommitdiff
path: root/cmd/gotosocial/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/gotosocial/server.go')
-rw-r--r--cmd/gotosocial/server.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/cmd/gotosocial/server.go b/cmd/gotosocial/server.go
index fda5bad90..42d5543ea 100644
--- a/cmd/gotosocial/server.go
+++ b/cmd/gotosocial/server.go
@@ -21,7 +21,6 @@ package main
import (
"github.com/spf13/cobra"
"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action/server"
- "github.com/superseriousbusiness/gotosocial/cmd/gotosocial/flag"
"github.com/superseriousbusiness/gotosocial/internal/config"
)
@@ -31,7 +30,6 @@ func serverCommands() *cobra.Command {
Use: "server",
Short: "gotosocial server-related tasks",
}
-
serverStartCmd := &cobra.Command{
Use: "start",
Short: "start the gotosocial server",
@@ -42,8 +40,7 @@ func serverCommands() *cobra.Command {
return run(cmd.Context(), server.Start)
},
}
- flag.Server(serverStartCmd, config.Defaults)
-
+ config.AddServerFlags(serverStartCmd)
serverCmd.AddCommand(serverStartCmd)
return serverCmd
}