fix go.mod

This commit is contained in:
Star 2024-03-15 22:41:54 +08:00
parent c6a2bcbb4c
commit 5dfeef91a2
3 changed files with 8 additions and 31 deletions

View File

@ -3,7 +3,7 @@
## Install ## Install
```shell ```shell
go install github.com/apigo/ag go install apigo.cloud/git/apigo/ag@latest
``` ```
## Usage ## Usage
@ -16,13 +16,14 @@ Usage:
ag [short command] [...] ag [short command] [...]
Commands: Commands:
init [i] create a new project with "go mod init"、"go mod tidy" etc. new [+] [name] create a new project, will create in the current directory if no name is specified
initPlugin [ip] name create a new plugin project with "go mod init"、"go mod tidy" etc. new plugin [+p] [name] create a new plugin project, will create in the current directory if no name is specified
initServer [is] name create a new server project with "go mod init"、"go mod tidy" etc. 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
pluginsCode [pc] export typescript code for used plugins into "plugins/" 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: Examples:
ag i init a new simple project with Hello World ag + create a new simple project with Hello World
ag ip ali init a new plugin project named ali for use aliyun services ag +p ali create a new plugin project named ali for use aliyun services
``` ```

21
go.mod
View File

@ -6,26 +6,5 @@ require github.com/ssgo/u v1.7.2
require ( require (
apigo.cloud/git/apigo/plugin v1.0.1 // indirect 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 gopkg.in/yaml.v3 v3.0.1 // indirect
) )
replace apigo.cloud/git/apigo/gojs v0.0.3 => ../gojs

View File

@ -289,7 +289,4 @@ func main() {
fmt.Println(" ", u.Magenta("ag +"), " create a new simple project with Hello World") 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(" ", u.Magenta("ag +p ali"), " create a new plugin project named ali for use aliyun services")
fmt.Println() fmt.Println()
fmt.Println(findTool())
} }