feat: share link

This commit is contained in:
2026-05-28 08:25:59 -04:00
parent 363c3b6c96
commit d18838dfee
6 changed files with 46 additions and 2 deletions

View File

@@ -7,10 +7,12 @@ import (
"lash"
"lash/internal/app"
"lash/internal/errx"
share "lash/internal/shareLink"
"net/http"
)
var versionFlag = flag.Bool("version", false, "Print out version and exit.")
var port = flag.Int("p", 1337, "Set the port for LASH exchanges.")
func main() {
@@ -24,6 +26,7 @@ func main() {
srv := app.New()
// TODO(vxc): Make this more portable
errx.Log("Your share link is %s", share.GenerateShareLink(*port))
errx.Log("Your token is \033[1;92m%s\033[0m", lash.Token)
errx.Log("starting server at http://0.0.0.0:%d", *port)