From 5dfeef91a2da4655a7ea5275713d6b8ada5f49ae Mon Sep 17 00:00:00 2001 From: Star <> Date: Fri, 15 Mar 2024 22:41:54 +0800 Subject: [PATCH] fix go.mod --- README.md | 15 ++++++++------- go.mod | 21 --------------------- main.go | 3 --- 3 files changed, 8 insertions(+), 31 deletions(-) diff --git a/README.md b/README.md index b057c24..399e545 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ## Install ```shell -go install github.com/apigo/ag +go install apigo.cloud/git/apigo/ag@latest ``` ## Usage @@ -16,13 +16,14 @@ Usage: ag [short command] [...] Commands: - init [i] create a new project with "go mod init"、"go mod tidy" etc. - initPlugin [ip] name create a new plugin project with "go mod init"、"go mod tidy" etc. - initServer [is] name create a new server project with "go mod init"、"go mod tidy" etc. - pluginsCode [pc] export typescript code for used plugins into "plugins/" + new [+] [name] create a new project, will create in the current directory if no name is specified + new plugin [+p] [name] create a new plugin project, will create in the current directory if no name is specified + run [r] [...more gowatch args] run project use gowatch, if project files changed will restart auto, gowatch args help see: https://github.com/ssgo/tool + test [t] [...more gowatch args] test project use gowatch, if project files changed will restart auto, gowatch args help see: https://github.com/ssgo/tool + export plugins [ep] export typescript code for used plugins into "plugins/" Examples: - ag i init a new simple project with Hello World - ag ip ali init a new plugin project named ali for use aliyun services + ag + create a new simple project with Hello World + ag +p ali create a new plugin project named ali for use aliyun services ``` diff --git a/go.mod b/go.mod index c221dd5..3466659 100644 --- a/go.mod +++ b/go.mod @@ -6,26 +6,5 @@ require github.com/ssgo/u v1.7.2 require ( apigo.cloud/git/apigo/plugin v1.0.1 // indirect - github.com/go-ole/go-ole v1.2.6 // indirect - github.com/gomodule/redigo v1.8.8 // indirect - github.com/gorilla/websocket v1.4.2 // indirect - github.com/lufia/plan9stats v0.0.0-20211012122336-39d0f177ccd0 // indirect - github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c // indirect - github.com/shirou/gopsutil/v3 v3.22.10 // indirect - github.com/ssgo/config v1.7.2 // indirect - github.com/ssgo/discover v1.7.2 // indirect - github.com/ssgo/httpclient v1.7.2 // indirect - github.com/ssgo/log v1.7.2 // indirect - github.com/ssgo/redis v1.7.2 // indirect - github.com/ssgo/s v1.7.2 // indirect - github.com/ssgo/standard v1.7.2 // indirect - github.com/tklauser/go-sysconf v0.3.10 // indirect - github.com/tklauser/numcpus v0.4.0 // indirect - github.com/yusufpapurcu/wmi v1.2.2 // indirect - golang.org/x/net v0.0.0-20190320064053-1272bf9dcd53 // indirect - golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect - golang.org/x/text v0.3.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) - -replace apigo.cloud/git/apigo/gojs v0.0.3 => ../gojs diff --git a/main.go b/main.go index ef863d1..b494df3 100644 --- a/main.go +++ b/main.go @@ -289,7 +289,4 @@ func main() { fmt.Println(" ", u.Magenta("ag +"), " create a new simple project with Hello World") fmt.Println(" ", u.Magenta("ag +p ali"), " create a new plugin project named ali for use aliyun services") fmt.Println() - - fmt.Println(findTool()) - }