A simple page for all your links.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

34 lines
559 B

  1. package main
  2. import (
  3. "github.com/abunchtell/publicbio"
  4. "github.com/urfave/cli/v2"
  5. "github.com/writeas/web-core/log"
  6. "os"
  7. )
  8. func main() {
  9. app := &cli.App{
  10. Name: "Public Bio",
  11. Usage: "A public bio and link page builder.",
  12. Version: publicbio.FormatVersion(),
  13. Action: serveAction,
  14. Flags: []cli.Flag{
  15. &cli.StringFlag{
  16. Name: "u",
  17. Usage: "Configuration file for single-user site",
  18. },
  19. },
  20. }
  21. app.Commands = []*cli.Command{
  22. &cmdServe,
  23. }
  24. err := app.Run(os.Args)
  25. if err != nil {
  26. log.Error(err.Error())
  27. os.Exit(1)
  28. }
  29. }