anqiansong
5e7b1f6bfe
Fix process blocking problem during check ( #1911 )
2022-05-17 09:42:18 +08:00
Kevin Wan
5d09cd0e7c
use goproxy properly, remove files ( #1903 )
2022-05-14 16:00:20 +08:00
anqiansong
f486685e99
Fix code generation ( #1897 )
2022-05-13 00:16:17 +08:00
Kevin Wan
5451d96a81
chore: update some logs ( #1875 )
2022-05-07 23:34:55 +08:00
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
Fyn
e62870e268
feat(goctl): go work multi-module support ( #1800 )
...
* feat(goctl): go work multi-module support
Resolve : #1793
* chore: print log when getting project ctx fails
2022-04-18 20:36:41 +08:00
Kevin Wan
ac18cc470d
chore: refactor to use const instead of var ( #1731 )
2022-04-01 15:23:45 +08:00
Fyn
f4471846ff
feat(goctl): supports model code 'DO NOT EDIT' ( #1728 )
...
Resolves : #1710
2022-04-01 14:48:45 +08:00
Kevin Wan
3febb1a5d0
chore: refactor code ( #1700 )
2022-03-23 19:09:45 +08:00
anqiansong
0aeb49a6b0
Add verbose flag ( #1696 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-03-22 21:00:26 +08:00
anqiansong
68a81fea8a
Fix #1609 ( #1617 )
2022-03-05 22:52:32 +08:00
anqiansong
08a8bd7ef7
Fix #1614 ( #1616 )
2022-03-05 21:40:41 +08:00
anqiansong
daa98f5a27
Feature: Add goctl env ( #1557 )
2022-02-21 10:19:33 +08:00
Kevin Wan
6deb80625d
fix issue of default migrate version ( #1536 )
...
* fix issue of default migrate version
* chore: update console colors
2022-02-14 23:09:32 +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
Kevin Wan
4b7a680ac5
refactor: rename from tal-tech to zeromicro for goctl ( #1481 )
2022-01-25 23:15:07 +08:00
Kevin Wan
a91c3907a8
feat: rename module from tal-tech to zeromicro ( #1413 )
2022-01-04 15:51:32 +08:00
anqiansong
89ce5e492b
refactor file|path ( #1409 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-01-03 21:32:40 +08:00
anqiansong
8e9110cedf
fix #1330 ( #1382 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2021-12-30 20:44:04 +08:00
Kevin Wan
d6ff30a570
chore: fix golint issues ( #1396 )
2021-12-30 17:44:15 +08:00
anqiansong
b8ea16a88e
feat: Add --remote ( #1387 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2021-12-29 18:16:42 +08:00
anqiansong
0cb86c6990
reset link goctl ( #1232 )
2021-11-13 18:39:07 +08:00
anqiansong
9c48e9ceab
Feature add template version ( #1152 )
2021-10-29 09:55:41 +08:00
anqiansong
44202acb18
Fix issue #1127 ( #1131 )
...
* fix #1127
* fix #1127
* fixed unit test
* add go keyword converter
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2021-10-13 20:48:47 +08:00
Kevin Wan
65905b914d
ci: add reviewdog ( #1096 )
2021-09-29 13:09:20 +08:00
anqiansong
e8a340c1c0
Create a symbol link file named protoc-gen-goctl from goctl ( #1076 )
2021-09-21 23:13:31 +08:00
anqiansong
9a724fe907
Add MustTempDir ( #1069 )
2021-09-21 10:13:43 +08:00
anqiansong
7fb5bab26b
fix #1058 ( #1064 )
2021-09-19 08:53:41 +08:00
Kevin Wan
71c0288023
fix symlink issue on windows for goctl ( #1034 )
...
* fix symlink issue on windows for goctl
* move readlink into separate file
2021-09-13 11:49:07 +08:00
Kevin Wan
0b6bc69afa
reorg imports, format code ( #1024 )
2021-09-11 21:28:47 +08:00
anqiansong
ded22e296e
revert changes
2021-09-11 20:57:58 +08:00
anqiansong
f0ed2370a3
fix #1014 ( #1018 )
...
* fix #1014
* remove unused code
* * optimize generate pb.go on Windows
* format code
* optimize console.go
* version rollback
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2021-09-11 12:48:32 +08:00
Kevin Wan
96a35ecf1a
fix #1006 ( #1008 )
...
* use sdktrace instead of trace for opentelemetry to avoid conflicts
* disable opentelemetry for right now
* use os.ModeSymlink instead of fs.ModeSymlink for backward compatibility
2021-09-07 15:38:40 +08:00
anqiansong
84d2b64e7c
optimize unit test ( #999 )
2021-09-06 14:20:21 +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
Kevin Wan
0325d8e92d
format code, and reorg imports ( #991 )
2021-09-04 10:08:49 +08:00
anqiansong
2125977281
Fix filepath ( #990 )
2021-09-04 08:15:22 +08:00
Kevin Wan
bf3ce16823
fix #820 ( #934 )
2021-08-19 22:48:21 +08:00
anqiansong
b2fea65faa
Optimize model naming ( #910 )
...
* add unit test
* fix #907
* format code
* format code
* format code
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-08-18 17:09:34 +08:00
Kevin Wan
f2612db4b1
add stringx.FirstN ( #914 )
2021-08-15 23:02:48 +08:00
anqiansong
dc43430812
optimize grpc generation env check ( #900 )
...
* optimize grpc generation env check
* optimize grpc generation env check
* format code
* fix postgresql data type convert error
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-08-13 11:47:42 +08:00
市民233
0b0406f41a
fix: 解决golint 部分警告 ( #897 )
...
* feat: 解决goreportcard的警报
ps: warning: if block ends with a return statement, so drop this else and outdent its block (golint)
* feat: 优化golint警告,将processFieldPrimitiveWithJsonNumber 改成 processFieldPrimitiveWithJSONNumber
unmarshaler.go:248:23: method processFieldPrimitiveWithJsonNumber should be processFieldPrimitiveWithJSONNumber
* feat: 添加 WithCanonicalKeyFunc 注释
* feat: 添加DisableStat的注释
* feat: 添加 RegisterGoctlHome 注释
* feat: 添加 PostgreSqlJoin 注释
* feat: 解决goline警告should not use basic type string as key in context.WithValue问题
* feat: 解决golint警告信息: should not use basic type string as key in context.WithValue
* fix: 定义自定义字段类型,导致go test fail 问题
* update: 恢复原有测试用例
* fix golint warning
2021-08-11 17:57:20 +08:00
anqiansong
9f4a882a1b
fix issue #831 ( #850 )
...
* fix issue #831
* fix typo
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-07-28 16:32:15 +08:00
Bo-Yi Wu
afd9ff889e
chore: update code format. ( #628 )
2021-04-15 19:49:17 +08:00
anqiansong
60c7edf8f8
fix spelling ( #551 )
2021-03-08 18:23:12 +08:00
anqiansong
d894b88c3e
feature 1.1.5 ( #411 )
2021-03-01 17:29:07 +08:00
kingxt
e6ef1fca12
Code optimized ( #523 )
...
* optimized markdown generator
* optimized markdown generator
* optimized markdown generator
* add more comment
* add comment
* add comment
* add comments for rpc tool
* add comments for model tool
* add comments for model tool
* add comments for model tool
* add comments for config tool
* add comments for config tool
* add comments
* add comments
* add comments
* add comments
* add comment
* remove rpc main head info
* add comment
* optimized
Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-02-26 16:11:47 +08:00
kingxt
f98c9246b2
Code optimized ( #493 )
2021-02-20 19:50:03 +08:00
Kevin Wan
5e969cbef0
fix golint issues, else blocks ( #457 )
2021-02-09 13:50:21 +08:00
Kevin Wan
c686c93fb5
fix dockerfile generation bug ( #277 )
2020-12-11 20:31:31 +08:00