ag/README.md

35 lines
1.4 KiB
Markdown
Raw Permalink Normal View History

2024-03-15 22:32:19 +08:00
# ag - tools for apigo.cloud
## Install
```shell
2024-06-26 12:16:21 +08:00
go install apigo.cc/apigo/ag@latest
2024-03-15 22:32:19 +08:00
```
## Usage
```
tools for apigo.cloud
Usage:
ag [command] [...]
ag [short command] [...]
Commands:
2024-07-04 17:58:16 +08:00
init [i] init a new project for empty dir
init plugin [i p] init a new plugin project for empty dir
run [r] will exec `go run .`
watch run [rr] [...] run project use gowatch, if project files changed will restart auto, ... args see gowatch help https://github.com/ssgo/tool
test [t] will exec `go test -v .`, will exec into tests if exists tests dir
watch test [tt] [...] test project use gowatch, if project files changed will restart auto, ... args see gowatch help https://github.com/ssgo/tool
tidy [td] tidy project, find imported plugins from .js files add import code to jsImports.go, export typescript code for used plugins into "plugins/"
tags [] show git tags
commit [co] comment commit git repo and push, comment is need
tag+ [t+] [version] add git tag push, if no new tag specified will use last tag +1
2024-03-15 22:32:19 +08:00
Examples:
2024-03-15 22:41:54 +08:00
ag + create a new simple project with Hello World
ag +p ali create a new plugin project named ali for use aliyun services
2024-03-15 22:32:19 +08:00
```
2024-03-14 12:53:10 +08:00