Commit Graph

104 Commits (05a5de7c6d828179a95d9f5e14ee1a8c259d45bf)

Author SHA1 Message Date
anqiansong 5383e29ce6
feat: Replace cli to cobra (#1855)
* Replace cli

* Replace cli

* Replace cli

* Format code

* Add compare case

* Add compare case

* Add compare case

* Support go style flag

* Support go style flag

* Add test case
3 years ago
全自动盒子 ae2c76765c
fix typo (#1857) 3 years ago
anqiansong cc09ab2aba
feat: Support model code generation for multi tables (#1836)
* Support model code generation for multi tables

* Format code

* Format code

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
chowyu12 14bf2f33f7
add go-grpc_opt and go_opt for grpc new command (#1769)
Co-authored-by: zhouyy <zhouyy@ickey.cn>
3 years ago
fang duan bbe1249ecb
update rpc generate sample proto file (#1709)
* update rpc generate sample proto file

* update
3 years ago
Kevin Wan 9e20b1bbfe
chhore: fix usage typo (#1797) 3 years ago
fang duan fadef0ccd9
goctl api new should given a service_name explictly (#1688) 3 years ago
fang duan ff6c6558dd
improve goctl rpc new (#1687) 3 years ago
anqiansong 58a0b17451
Support `goctl env install` (#1752)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong 0aeb49a6b0
Add verbose flag (#1696)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan d29dfa12e3
feat: support -base to specify base image for goctl docker (#1668)
* feat: support -base to specify base image for goctl docker

* chore: update usage
3 years ago
anqiansong 227104d7d7
feat: Remove command `goctl rpc proto` (#1665)
* Fix goctl completion expression

* Fix code generation error if the pkg of pb/grpc is same to zrpc call client pkg

* Remove deprecated comment on action goctl rpc new

* Remove zrpc code generation on action goctl rpc proto

* Remove zrpc code generation on action goctl rpc proto

* Remove Generator interface

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
chensy c55694d957
Support for referencing types in different API files using format (#1630) 3 years ago
Kevin Wan 26a33932cd
feat: support scratch as the base docker image (#1634) 3 years ago
Kevin Wan d6a692971f
chore: reduce the docker image size (#1633)
* chore: reduce the docker image size

* chore: format dockerfile
3 years ago
anqiansong 4624390e54
Fix #1585 #1547 (#1624) 3 years ago
anqiansong 68a81fea8a
Fix #1609 (#1617) 3 years ago
Fyn 6a66dde0a1
feat(goctl): api dart support flutter v2 (#1603)
0. support null-safety code gen
1. supports -legacy flag for legacy code gen
2. supports -hostname flag for server hostname
3. use dart official format
4. fix some some bugs

Resolves: #1602
3 years ago
Kevin Wan 66f10bb5e6
chore: add goctl command help (#1578) 3 years ago
toutou_o 3b07ed1b97
feat: support pg serial type for auto_increment (#1563)
* add correct example for pg's url

* 🐞 fix: merge

* 🐞 fix: pg default port

*  feat: support serial type

Co-authored-by: kurimi1 <d0n41df@gmail.com>
3 years ago
anqiansong daa98f5a27
Feature: Add goctl env (#1557) 3 years ago
Kevin Wan bd105474ca
chore: update help message (#1544) 3 years ago
Mikael a078f5d764
add the serviceAccount of deployment (#1543)
Co-authored-by: 977231903@qq.com <>
3 years ago
anqiansong 8bd89a297a
feature: Add `goctl completion` (#1505)
* feature: Add `goctl completion`

* Update const

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong b1ffc464cd
fix typo: goctl protoc usage (#1502)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong 696fda1db4
patch: goctl migrate (#1485)
* * Add signal check
* Add deprecated pkg check

* fix typo `replacementBuilderx`

* output to console if verbose

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan 4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl (#1481) 3 years ago
anqiansong 9b592b3dee
Feature rpc protoc (#1251)
* code generation by protoc

* generate pb by protoc direct

* support: grpc code generation by protoc directly

* format code

* check --go_out & --go-grpc_out

* fix typo

* Update version

* fix typo

* optimize: remove deprecated unit test

* format code

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong 9d67fc4cfb
feat: Add migrate (#1419)
* Add migrate

* Remove unused module

* refactor filename

* rename refactor to migrate

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
Kevin Wan a91c3907a8
feat: rename module from tal-tech to zeromicro (#1413) 3 years ago
anqiansong b8ea16a88e
feat: Add --remote (#1387)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
JiangYiJun a67c118dcf
go-zero tools ,fix a func,api new can not choose style (#1356) 3 years ago
anqiansong 0b17e0e5d9
Feat goctl bug (#1332)
* Support goctl bug

* fix typo

* format code

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong 0cb86c6990
reset link goctl (#1232) 3 years ago
Kevin Wan d3bfa16813
feat: exit with non-zero code on errors (#1218)
* feat: exit with non-zero code on errors

* chore: use const for code
3 years ago
晨曦中 539215d7df
goctl docker command add -version (#1206)
* feature(优化): 优化goctl

goctl docker 命令新增version参数,指定builder golang 版本

* feature(优化): 优化goctl

goctl docker 命令新增version参数,指定builder golang 版本
3 years ago
zeromake 9fd3f752d1
fix(goctl): repeat creation protoc-gen-goctl symlink (#1162) 3 years ago
Amor 41c980f00c
update goctl api (#1052)
* update goctl api

* add LoadTemplate

* update new api template

* update
3 years ago
anqiansong e8a340c1c0
Create a symbol link file named protoc-gen-goctl from goctl (#1076) 3 years ago
Kevin Wan e8376936d5
remove goctl config command (#1035) 3 years ago
Kevin Wan 0b6bc69afa
reorg imports, format code (#1024) 3 years ago
neosu d8905b9e9e
add api template file (#1003) 3 years ago
Kevin Wan 10805577f5
reorg imports, format code (#1000) 3 years ago
anqiansong 8829c31c0d
Feature goctl error wrap (#995)
* Add `Wrap` in file errorx.go

* Wrap error with `GoctlError`

* format code

* Refactor package `env` to `version`

* Refactor package `IsVersionGatherThan`

* fix typo

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
anqiansong 3203f8e06b
Fix issues (#965) 3 years ago
anqiansong 189721da16
Fix issues (#931)
* fix #929

* fix #925

* add test case

* update model README

* fix #929

* fix #929

* fix #929

* refactor dir

* Adding todo comments

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
3 years ago
Kevin Wan f7f3730e1a
update goctl version to 1.1.10 (#874) 3 years ago
neosu 00061c2e5b
add goctl rpc template home flag (#871)
Co-authored-by: suzhenpeng <suzhenpeng@ecoplants.tech>
3 years ago
Kevin Wan 6793f7a1de
fix bug that proc.SetTimeToForceQuit not working in windows (#869) 3 years ago
toutou_o a5e1d0d0dc
add correct example for pg's url (#857) 3 years ago