From 20a102a047c85053db96c85b7bf2f760d7e90c6d Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 23 Dec 2023 20:23:46 +0100 Subject: Rename run command to web --- main.go | 6 +++--- test.sh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/main.go b/main.go index 0c8dd32..5275c26 100644 --- a/main.go +++ b/main.go @@ -702,8 +702,8 @@ func handleAPIOrphans(w http.ResponseWriter, r *http.Request) { // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -// cmdRun runs a web UI against GD on ADDRESS. -func cmdRun(args []string) error { +// cmdWeb runs a web UI against GD on ADDRESS. +func cmdWeb(args []string) error { if len(args) != 2 { return errors.New("usage: GD ADDRESS") } @@ -2082,7 +2082,7 @@ var commands = map[string]struct { handler func(args []string) error }{ "init": {cmdInit}, - "run": {cmdRun}, + "web": {cmdWeb}, "import": {cmdImport}, "tag": {cmdTag}, "sync": {cmdSync}, diff --git a/test.sh b/test.sh index 84d4016..dd0da83 100755 --- a/test.sh +++ b/test.sh @@ -14,7 +14,7 @@ cp -ra $HOME/Pictures/Anime $input ./gallery tag $target autotagger "DanBooru autotagger" \ < ../build-db/autotagger.tsv -./gallery run $target :8080 & +./gallery web $target :8080 & web=$! echo '{"path":"/tmp/Gi"}' | \ -- cgit v1.2.3-70-g09d2