Commit Graph

104 Commits

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
2022-05-07 15:40:11 +08:00
全自动盒子
ae2c76765c
fix typo (#1857) 2022-05-03 16:25:13 +08:00
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>
2022-04-28 10:01:04 +08:00
chowyu12
14bf2f33f7
add go-grpc_opt and go_opt for grpc new command (#1769)
Co-authored-by: zhouyy <zhouyy@ickey.cn>
2022-04-21 16:45:56 +08:00
fang duan
bbe1249ecb
update rpc generate sample proto file (#1709)
* update rpc generate sample proto file

* update
2022-04-19 10:59:16 +08:00
Kevin Wan
9e20b1bbfe
chhore: fix usage typo (#1797) 2022-04-17 21:17:31 +08:00
fang duan
fadef0ccd9
goctl api new should given a service_name explictly (#1688) 2022-04-17 20:59:18 +08:00
fang duan
ff6c6558dd
improve goctl rpc new (#1687) 2022-04-17 20:56:56 +08:00
anqiansong
58a0b17451
Support goctl env install (#1752)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-03 21:58:43 +08:00
anqiansong
0aeb49a6b0
Add verbose flag (#1696)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-03-22 21:00:26 +08:00
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
2022-03-20 11:17:55 +08:00
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>
2022-03-19 22:50:22 +08:00
chensy
c55694d957
Support for referencing types in different API files using format (#1630) 2022-03-12 15:17:31 +08:00
Kevin Wan
26a33932cd
feat: support scratch as the base docker image (#1634) 2022-03-11 12:15:38 +08:00
Kevin Wan
d6a692971f
chore: reduce the docker image size (#1633)
* chore: reduce the docker image size

* chore: format dockerfile
2022-03-11 11:30:21 +08:00
anqiansong
4624390e54
Fix #1585 #1547 (#1624) 2022-03-09 19:26:35 +08:00
anqiansong
68a81fea8a
Fix #1609 (#1617) 2022-03-05 22:52:32 +08:00
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
2022-03-04 15:34:13 +08:00
Kevin Wan
66f10bb5e6
chore: add goctl command help (#1578) 2022-02-26 17:02:04 +08:00
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>
2022-02-24 13:39:31 +08:00
anqiansong
daa98f5a27
Feature: Add goctl env (#1557) 2022-02-21 10:19:33 +08:00
Kevin Wan
bd105474ca
chore: update help message (#1544) 2022-02-15 21:19:40 +08:00
Mikael
a078f5d764
add the serviceAccount of deployment (#1543)
Co-authored-by: 977231903@qq.com <>
2022-02-15 20:57:14 +08:00
anqiansong
8bd89a297a
feature: Add goctl completion (#1505)
* feature: Add `goctl completion`

* Update const

Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-02-08 10:50:21 +08:00
anqiansong
b1ffc464cd
fix typo: goctl protoc usage (#1502)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-02-03 22:13:02 +08:00
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>
2022-01-26 23:24:25 +08:00
Kevin Wan
4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl (#1481) 2022-01-25 23:15:07 +08:00
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>
2022-01-11 20:34:25 +08:00
anqiansong
9d67fc4cfb
feat: Add migrate (#1419)
* Add migrate

* Remove unused module

* refactor filename

* rename refactor to migrate

Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-01-06 18:48:34 +08:00
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro (#1413) 2022-01-04 15:51:32 +08:00
anqiansong
b8ea16a88e
feat: Add --remote (#1387)
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2021-12-29 18:16:42 +08:00
JiangYiJun
a67c118dcf
go-zero tools ,fix a func,api new can not choose style (#1356) 2021-12-23 10:28:46 +08:00
anqiansong
0b17e0e5d9
Feat goctl bug (#1332)
* Support goctl bug

* fix typo

* format code

Co-authored-by: anqiansong <anqiansong@bytedance.com>
2021-12-15 22:43:58 +08:00
anqiansong
0cb86c6990
reset link goctl (#1232) 2021-11-13 18:39:07 +08:00
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
2021-11-09 22:42:44 +08:00
晨曦中
539215d7df
goctl docker command add -version (#1206)
* feature(优化): 优化goctl

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

* feature(优化): 优化goctl

goctl docker 命令新增version参数,指定builder golang 版本
2021-11-06 21:28:32 +08:00
zeromake
9fd3f752d1
fix(goctl): repeat creation protoc-gen-goctl symlink (#1162) 2021-10-29 09:56:51 +08:00
Amor
41c980f00c
update goctl api (#1052)
* update goctl api

* add LoadTemplate

* update new api template

* update
2021-09-23 14:31:11 +08:00
anqiansong
e8a340c1c0
Create a symbol link file named protoc-gen-goctl from goctl (#1076) 2021-09-21 23:13:31 +08:00
Kevin Wan
e8376936d5
remove goctl config command (#1035) 2021-09-13 14:04:06 +08:00
Kevin Wan
0b6bc69afa
reorg imports, format code (#1024) 2021-09-11 21:28:47 +08:00
neosu
d8905b9e9e
add api template file (#1003) 2021-09-07 10:16:10 +08:00
Kevin Wan
10805577f5
reorg imports, format code (#1000) 2021-09-06 14:56:46 +08:00
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>
2021-09-05 21:57:44 +08:00
anqiansong
3203f8e06b
Fix issues (#965) 2021-08-27 15:05:54 +08:00
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>
2021-08-19 22:47:45 +08:00
Kevin Wan
f7f3730e1a
update goctl version to 1.1.10 (#874) 2021-08-04 19:29:40 +08:00
neosu
00061c2e5b
add goctl rpc template home flag (#871)
Co-authored-by: suzhenpeng <suzhenpeng@ecoplants.tech>
2021-08-04 15:54:43 +08:00
Kevin Wan
6793f7a1de
fix bug that proc.SetTimeToForceQuit not working in windows (#869) 2021-08-04 11:31:33 +08:00
toutou_o
a5e1d0d0dc
add correct example for pg's url (#857) 2021-07-30 13:58:44 +08:00