This repository has been archived on 2025-11-25. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
combluotion-old/commands/app.go
2023-03-27 20:48:25 -05:00

20 lines
452 B
Go

package commands
import (
web "codeberg.org/danjones000/lenore/app"
"github.com/spf13/cobra"
"log"
)
func run(cmd *cobra.Command, args []string) {
app := web.New()
log.Fatal(app.Listen(":3000"))
}
var AppCmd = &cobra.Command{
Use: "app",
Short: "Run the lenore webapp",
Long: `This is the main command. This will start the application, and keep it running.
You may want to run this from something like supervisor or systemd`,
Run: run,
}