maint: remove deps and add docs
This commit is contained in:
20
README.md
20
README.md
@@ -1 +1,21 @@
|
||||
# LASH (Local Area Share HTTP)
|
||||
|
||||
## Usage
|
||||
Using lash is pretty simple. You just provide any amount of command line
|
||||
arguments and it will generate a share link, and a code. You either go-to
|
||||
http://<your-local-ip>:port or goto http://<your-share-link> to access the
|
||||
files.
|
||||
|
||||
## Building from Source
|
||||
Lash only has one dependency and that it is Go >= 1.26.3. To build it you just
|
||||
run either of the two following commands.
|
||||
|
||||
```sh
|
||||
$ make
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```sh
|
||||
$ go build -o lash ./bin/main.go
|
||||
```
|
||||
|
||||
@@ -37,7 +37,7 @@ func main() {
|
||||
|
||||
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)
|
||||
errx.Log("starting server at http://%s:%d", share.GetLocalIP(), *port)
|
||||
if err := server.ListenAndServe(); err != nil {
|
||||
errx.FatalPerror(err)
|
||||
}
|
||||
|
||||
2
go.sum
2
go.sum
@@ -1,2 +0,0 @@
|
||||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
|
||||
Reference in New Issue
Block a user