aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-10-18 00:05:13 +0700
committerShulhan <ms@kilabit.info>2021-10-18 00:05:13 +0700
commit95fcd7309283daecc75abd9de57428353ee940bc (patch)
tree822f9374aa474be7d4ccceec1881c324cf26cb05
parentcf6100a626ea17a808a1bc96471c759b27c7c03b (diff)
downloadgorankusu-95fcd7309283daecc75abd9de57428353ee940bc.tar.xz
all: rename internal/cmd/trunks-example to internal/cmd/trunks
The internal/cmd/trunks-example is not run and provide an example only now, its include the workers to build, recompile, re-embeded files.
-rw-r--r--Makefile8
-rw-r--r--README.md2
-rw-r--r--example/example.go4
-rw-r--r--internal/cmd/trunks/main.go (renamed from internal/cmd/trunks-example/main.go)0
4 files changed, 8 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 017f5a4..957aeff 100644
--- a/Makefile
+++ b/Makefile
@@ -2,11 +2,11 @@
## Use of this source code is governed by a BSD-style
## license that can be found in the LICENSE file.
-.PHONY: all run embed tsc
+.PHONY: all dev
all:
- go run ./internal/cmd/trunks-example build
+ go run ./internal/cmd/trunks build
go test -v -race ./...
-run:
- go run ./internal/cmd/trunks-example
+dev:
+ go run ./internal/cmd/trunks
diff --git a/README.md b/README.md
index 8da7647..a0b1072 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ See the
on how to programmatically use and create service using this module, or,
* clone this repository,
- * execute `make run`, and
+ * execute `make dev`, and
* open http://127.0.0.1:8217.
diff --git a/example/example.go b/example/example.go
index 56f7d7c..32de036 100644
--- a/example/example.go
+++ b/example/example.go
@@ -4,7 +4,9 @@
//
// To run the example, execute
//
-// $ go run ./internal/cmd/trunks-example
+// $ go run ./internal/cmd/trunks
+//
+// It will run a web user interface at http://127.0.0.1:8217 .
//
package example
diff --git a/internal/cmd/trunks-example/main.go b/internal/cmd/trunks/main.go
index 1746209..1746209 100644
--- a/internal/cmd/trunks-example/main.go
+++ b/internal/cmd/trunks/main.go