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

24 lines
504 B
Go

package commands
import (
web "codeberg.org/danjones000/lenore/app"
"github.com/spf13/cobra"
"log"
)
type passReq struct {
Pass string `json:"pass"`
}
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,
}