aboutsummaryrefslogtreecommitdiff
path: root/internal/cmd
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2020-05-01 13:43:31 +0700
committerShulhan <ms@kilabit.info>2020-05-01 13:43:31 +0700
commit9789c9f4528aa9e5e5e7d25009b2264e47298d2a (patch)
tree4cb5c39acb230887d14f02a791c52a53d816a31e /internal/cmd
parent9039448f8a91ee96ecea1c7c78ccaf81f4699e92 (diff)
downloadciigo-9789c9f4528aa9e5e5e7d25009b2264e47298d2a.tar.xz
all: move the file to generate static assets to internal/cmd/generate
Diffstat (limited to 'internal/cmd')
-rw-r--r--internal/cmd/generate/main.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/cmd/generate/main.go b/internal/cmd/generate/main.go
new file mode 100644
index 0000000..f321bc1
--- /dev/null
+++ b/internal/cmd/generate/main.go
@@ -0,0 +1,13 @@
+// Copyright 2019, Shulhan <ms@kilabit.info>. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+//go:generate go run generate_main.go
+
+package main
+
+import "github.com/shuLhan/ciigo"
+
+func main() {
+ ciigo.Generate("./content", "cmd/ciigo-example/static.go", "templates/html.tmpl")
+}