feat: share link
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user