add simple description in command

This commit is contained in:
Ronmi Ren 2025-01-12 21:08:02 +08:00
commit 11d3892bda
2 changed files with 13 additions and 0 deletions

View file

@ -22,6 +22,12 @@ import (
var serveCmd = &cobra.Command{
Use: "serve",
Short: "Start the static page server.",
Long: `Start the static page server.
Serve mode will start a HTTP server to serve static pages. It just forward requests
to Forgejo server. This is useful when there is not much viewers, or you have other
cache/protection layer like Cloudflare in front of the server.
`,
Run: func(cmd *cobra.Command, args []string) {
viper.BindPFlags(cmd.Flags())
// check flags