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

20 lines
452 B
Go
Raw Normal View History

2023-03-24 13:03:21 -05:00
package commands
import (
web "codeberg.org/danjones000/lenore/app"
2023-03-24 13:03:21 -05:00
"github.com/spf13/cobra"
"log"
)
func run(cmd *cobra.Command, args []string) {
app := web.New()
2023-03-24 13:03:21 -05:00
log.Fatal(app.Listen(":3000"))
}
var AppCmd = &cobra.Command{
Use: "app",
2023-03-25 20:42:54 -05:00
Short: "Run the lenore webapp",
2023-03-24 13:03:21 -05:00
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,
2023-03-24 13:03:21 -05:00
}