Go to file
2024-10-24 19:15:26 +08:00
templates 1 2024-10-24 19:15:26 +08:00
tests 1 2024-10-24 19:15:26 +08:00
.gitignore 1 2024-10-24 19:15:26 +08:00
go.mod 1 2024-10-24 19:15:26 +08:00
main.go 1 2024-10-24 19:15:26 +08:00
README.md 1 2024-10-24 19:15:26 +08:00

ag - tools for apigo.cc/gojs

Install

go install apigo.cc/ag@latest

Usage

tools for apigo.cc/gojs

Usage:
  ag [command] [...]
  ag [short command] [...]

Commands:
  init [i] [service|client]           init a new project for empty dir
  build [b] [all|os arch]             build project
  pack [p] [all|os arch]              pack project
  run [r] [args...]                   run project
  buildrun [rr] [args...]             build and run project
  watch [w] [args...]                 run and watch project
  buildwatch [ww] [args...]           build and run and watch project
  test [t] [args...]                  test project
  buildtest [tt] [args...]            build and test project
  tidy [td]                           tidy project, run go mod tidy
  check [ck]                          check go modules version
  export [e]                          export typescript code for dev
  tags []                             show git tags
  add tag [t+] [version]              add git tag and push, if no new tag specified will use last tag +1
  commit [c+] comment                 commit git repo and push, comment is need

Examples:
  ag init           init a new default project
  ag init service   init a new service project
  ag init client    init a new client project
  ag init all       init a new project use all modules by apigo.cc/ag/all included
  ag build          build project
  ag build all      build project for all platforms
  ag run            run project
  ag test           test project