diff --git a/README.md b/README.md index 5966fc8..a79c679 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ ## 安装 ```bash -go install github.com/cyi-cc/fun-cli@latest +go install github.com/cyi-cc/fun-cli/cmd/fun@latest ``` ## 工作原理(为什么 fun 可以零改动) diff --git a/astscan.go b/cmd/fun/astscan.go similarity index 100% rename from astscan.go rename to cmd/fun/astscan.go diff --git a/client_ts_test.go b/cmd/fun/client_ts_test.go similarity index 100% rename from client_ts_test.go rename to cmd/fun/client_ts_test.go diff --git a/docs.go b/cmd/fun/docs.go similarity index 100% rename from docs.go rename to cmd/fun/docs.go diff --git a/docsui/index.html b/cmd/fun/docsui/index.html similarity index 100% rename from docsui/index.html rename to cmd/fun/docsui/index.html diff --git a/cmd/fun/fun b/cmd/fun/fun new file mode 100755 index 0000000..53941fd Binary files /dev/null and b/cmd/fun/fun differ diff --git a/gen.go b/cmd/fun/gen.go similarity index 100% rename from gen.go rename to cmd/fun/gen.go diff --git a/gen_test.go b/cmd/fun/gen_test.go similarity index 100% rename from gen_test.go rename to cmd/fun/gen_test.go diff --git a/helper.go b/cmd/fun/helper.go similarity index 100% rename from helper.go rename to cmd/fun/helper.go diff --git a/main.go b/cmd/fun/main.go similarity index 100% rename from main.go rename to cmd/fun/main.go diff --git a/meta.go b/cmd/fun/meta.go similarity index 100% rename from meta.go rename to cmd/fun/meta.go diff --git a/render.go b/cmd/fun/render.go similarity index 100% rename from render.go rename to cmd/fun/render.go diff --git a/render_go.go b/cmd/fun/render_go.go similarity index 100% rename from render_go.go rename to cmd/fun/render_go.go diff --git a/render_ts.go b/cmd/fun/render_ts.go similarity index 100% rename from render_ts.go rename to cmd/fun/render_ts.go diff --git a/run.go b/cmd/fun/run.go similarity index 100% rename from run.go rename to cmd/fun/run.go diff --git a/templates.go b/cmd/fun/templates.go similarity index 100% rename from templates.go rename to cmd/fun/templates.go diff --git a/testdata/alpha.json b/cmd/fun/testdata/alpha.json similarity index 100% rename from testdata/alpha.json rename to cmd/fun/testdata/alpha.json diff --git a/testdata/demo.json b/cmd/fun/testdata/demo.json similarity index 100% rename from testdata/demo.json rename to cmd/fun/testdata/demo.json diff --git a/tsparse.go b/cmd/fun/tsparse.go similarity index 100% rename from tsparse.go rename to cmd/fun/tsparse.go diff --git a/tsparse_test.go b/cmd/fun/tsparse_test.go similarity index 100% rename from tsparse_test.go rename to cmd/fun/tsparse_test.go