MarkJoyMa
f2caf9237a
fix goctl api clone template fail ( #1990 )
2022-06-09 23:35:03 +08:00
Kevin Wan
2f0e4e3ebf
chore: update dependencies ( #1985 )
2022-06-09 23:34:06 +08:00
Kevin Wan
2c6b422f6b
chore: update goctl version to 1.3.8 ( #1981 )
2022-06-06 20:07:39 +08:00
Kevin Wan
4d34998338
fix: generate bad Dockerfile on given dir ( #1980 )
2022-06-06 19:50:54 +08:00
anqiansong
8be47b9c99
Fix pg subcommand level error ( #1979 )
2022-06-06 19:42:31 +08:00
Kevin Wan
7868bdf660
Chore/goctl version ( #1962 )
...
* chore: update version to v1.3.7
* docs: update migrate versions
* chore: remove debug prints
* chore: remove debug prints
2022-06-03 20:46:21 +08:00
Kevin Wan
46078e716d
chore: update version ( #1961 )
2022-06-03 20:08:29 +08:00
Kevin Wan
289a325757
chore: refine docker for better compatible with package main ( #1944 )
...
* chore: refine docker for better compatible with package main
* chore: default to current dir on goctl docker command
2022-05-30 13:26:58 +08:00
Kevin Wan
72ebbb9774
feat: update docker alpine package mirror ( #1924 )
...
* feat: update docker alpine package mirror
* chore: format code
2022-05-23 09:13:21 +08:00
anqiansong
f1fdd55b38
Support built-in shorthand flags ( #1925 )
2022-05-23 09:13:12 +08:00
anqiansong
58787746db
fix: Useless delete cache logic in update ( #1923 )
...
* Fix bug: useless delete cache logic in update
* Format code
2022-05-23 09:12:06 +08:00
Kevin Wan
6b1e15cab1
chore: update k8s.io/client-go for security reason, go is upgrade to 1.16 ( #1912 )
...
* chore: fix jwt dependency security issue
* chore: update clickhouse driver
* chore: fix a security issue
* chore: update dependencies
2022-05-21 14:34:01 +08:00
anqiansong
5e7b1f6bfe
Fix process blocking problem during check ( #1911 )
2022-05-17 09:42:18 +08:00
Kevin Wan
7b82eda993
chore: use get for quickstart, plain logs for easy understanding ( #1905 )
2022-05-14 17:01:37 +08:00
Kevin Wan
5d09cd0e7c
use goproxy properly, remove files ( #1903 )
2022-05-14 16:00:20 +08:00
Kevin Wan
c6e2b4a43a
chore: coding style for quickstart ( #1902 )
2022-05-13 23:10:55 +08:00
anqiansong
52f060caae
feat: Add goctl quickstart ( #1889 )
...
* Add goctl quickstart
* Format code
* Format code
2022-05-13 12:23:24 +08:00
anqiansong
f486685e99
Fix code generation ( #1897 )
2022-05-13 00:16:17 +08:00
过客龙门
3ae874d75d
fix ts tpl ( #1879 )
2022-05-11 23:45:32 +08:00
givemeafish
14ca39bc86
fix:tools/goctl/rpc/generator/template_test.go file has wrong parameters ( #1882 )
2022-05-11 23:24:34 +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
全自动盒子
ae2c76765c
fix typo ( #1857 )
2022-05-03 16:25:13 +08:00
Kevin Wan
3bbc90ec24
refactor: move json related header vars to internal ( #1840 )
...
* refactor: move json related header vars to internal
* refactor: use header.ContentType
2022-04-28 15:12:04 +08:00
Kevin Wan
cef83efd4e
fix #1838 ( #1839 )
2022-04-28 11:25:26 +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
Kevin Wan
5bcee4cf7c
fix #1806 ( #1833 )
...
* fix #1806
* chore: refine error text
2022-04-27 00:01:31 +08:00
anqiansong
16c61c6657
chore: Embed unit test data ( #1812 )
...
* Embed unit test data
* Add testdata
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-21 21:49:09 +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
anqiansong
305587aa81
fix: Fix issue #1810 ( #1811 )
...
* Fix #1810
* Remove go embed
* Format code
* Remove useless code
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-21 15:22:43 +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
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
Fyn
036d803fbb
docs(goctl): goctl 1.3.4 migration note ( #1780 )
...
* docs(goctl): goctl 1.3.4 migration note
* adds a simple lang check
* adds migration notes
* chore: remove i18n
* chore: remove todo
2022-04-18 14:42:13 +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
4382ec0e0d
show help when running goctl api without any flags ( #1678 )
...
close #1676
2022-04-17 20:58:12 +08:00
fang duan
db99addc64
show help when running goctl docker without any flags ( #1679 )
...
close #1677
2022-04-17 20:57:46 +08:00
fang duan
97bf3856c1
show help when running goctl rpc protoc without any flags ( #1683 )
2022-04-17 20:57:26 +08:00
fang duan
ff6c6558dd
improve goctl rpc new ( #1687 )
2022-04-17 20:56:56 +08:00
Fyn
ee88abce14
fix(goctl): api/new/api.tpl ( #1788 )
2022-04-14 23:43:48 +08:00
方航
fabea4c448
fix bug: crash when generate model with goctl. ( #1777 )
...
* fix bug: crash when generate model with goctl.
situation: column name with line.
CREATE TABLE test (
id int NOT NULL AUTO_INCREMENT,
zh-cn text CHARACTER SET utf8 COLLATE utf8_general_ci COMMENT '中文简体',
PRIMARY KEY (id) USING BTREE,
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
* group imports
group imports
* Use
go-zero/tools/goctl/util/string.go
func SafeString(in string) string {
instead of ReplaceAll
Co-authored-by: 方航 <fanghang@tange.ai>
2022-04-11 10:11:40 +08:00
Fyn
6d9dfc08f9
feat(goctl): supports api multi-level importing ( #1747 )
...
* feat(goctl): supports api multi-level importing
Resolves : #1744
* fix(goctl): import-cycle, etc.
import-cycle will not be allowed
e.g., a.api -> b.api -> a.api
regular multiple-import will be allowed
e.g., a.api -> b.api -> c.api
-> c.api
* refactor(goctl): adds comments to exported var
* fix(goctl): typo in a comment
2022-04-09 23:26:57 +08:00
anqiansong
252fabcc4b
fix nil pointer if group not exists ( #1773 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-09 11:54:30 +08:00
Kevin Wan
415c4c91fc
fix: model unique keys generated differently in each re-generation ( #1771 )
2022-04-09 00:25:23 +08:00
fang duan
0cc9d4ff8d
show help when running goctl rpc template without any flags ( #1685 )
...
close #1684
2022-04-08 22:28:45 +08:00
anqiansong
8dd764679c
Fix #1765 ( #1767 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-07 10:40:21 +08:00
Kevin Wan
9fe868ade9
chore: remove legacy code ( #1766 )
2022-04-06 23:24:20 +08:00
Kevin Wan
ab01442d46
add more tests ( #1763 )
...
* feat: add goctl docker build scripts
* chore: add more tests
2022-04-06 16:09:06 +08:00
Kevin Wan
8694e38384
feat: add goctl docker build scripts ( #1760 )
2022-04-05 13:07:05 +08:00
Kevin Wan
faad6e27e3
feat: use go:embed to embed templates ( #1756 )
2022-04-04 13:12:05 +08:00
anqiansong
58a0b17451
Support goctl env install
( #1752 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-03 21:58:43 +08:00
Kevin Wan
89eccfdb97
chore: update go-zero to v1.3.2 in goctl ( #1750 )
2022-04-03 20:44:33 +08:00
Kevin Wan
dfd58c213c
fix: model generation bug on with cache ( #1743 )
...
* fix: model generation bug on with cache
* chore: refine template
* chore: fix test failure
2022-04-02 15:36:06 +08:00
Kevin Wan
83cacf51b7
chore: update goctl version to 1.3.4 ( #1742 )
2022-04-02 14:19:34 +08:00
Kevin Wan
6dccfa29fd
feat: let model customizable ( #1738 )
2022-04-01 22:19:52 +08:00
anqiansong
7e0b0ab0b1
Fix zrpc code generation error with --remote ( #1739 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-01 22:19:33 +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
anqiansong
9c2d526a11
Fix unit test ( #1730 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-04-01 14:46:12 +08:00
Kevin Wan
2b9fc26c38
refactor: guard timeout on API files ( #1726 )
2022-03-31 21:39:02 +08:00
Xiaoju Jiang
321dc2d410
Added support for setting the parameter size accepted by the interface and custom timeout and maxbytes in API file ( #1713 )
...
* Added support for setting the parameter size accepted by the interface
* support custom timeout and maxbytes in API file
* support timeout used unit
* remove goctl maxBytes
2022-03-31 20:20:00 +08:00
Fyn
500bd87c85
fix(goctl): api format with reader input ( #1722 )
...
resolves #1721
2022-03-31 00:20:51 +08:00
Kevin Wan
3febb1a5d0
chore: refactor code ( #1700 )
2022-03-23 19:09:45 +08:00
Mikael
d8054d8def
fix -cache=true insert no clean cache ( #1672 )
...
* fix -cache=true insert no clean cache
* fix -cache=true insert no clean cache
2022-03-23 18:55:16 +08:00
anqiansong
0aeb49a6b0
Add verbose flag ( #1696 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-03-22 21:00:26 +08:00
anqiansong
5c169f4f49
Remove debug log ( #1669 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-03-20 16:28:36 +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
194f55e08e
Remove unused code ( #1667 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-03-19 23:15:11 +08:00
Kevin Wan
c0f9892fe3
feat: add Dockerfile for goctl ( #1666 )
2022-03-19 23:07:17 +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
anqiansong
448029aa4b
Mkdir if not exists ( #1659 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-03-17 21:44:22 +08:00
Fyn
17e0afeac0
fix(goctl): model method FindOneCtx should be FindOne ( #1656 )
2022-03-17 17:16:53 +08:00
ronething-bot
18916b5189
[fix] typo ( #1655 )
2022-03-17 10:00:29 +08:00
Kevin Wan
c11a09be23
chore: remove unnecessary env ( #1654 )
2022-03-16 17:31:10 +08:00
ronething-bot
56e1ecf2f3
fix: typo ( #1646 )
2022-03-15 17:46:13 +08:00
xybingbing
09e6d94f9e
FindOneBy 漏 Context ( #1642 )
2022-03-14 18:56:26 +08:00
anqiansong
cc9d16f505
fix: Update unix-like path regex ( #1637 )
...
* Revert import value regex
* Update linux path regex
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-03-12 22:21:17 +08:00
chensy
c55694d957
Support for referencing types in different API files using format ( #1630 )
2022-03-12 15:17:31 +08:00
Ziyi Zhang
209ffb934b
fix(goctl): kotlin code generation ( #1632 )
...
Signed-off-by: Ziyi Zhang <soasurs@gmail.com>
2022-03-11 13:44:18 +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
Kevin Wan
63b7d292c1
chore: update goctl version to 1.3.3, change docker build temp dir ( #1621 )
2022-03-07 14:44:12 +08:00
Fyn
365c569d7c
fix(goctl): dart gen user defined struct array ( #1620 )
2022-03-07 14:11:47 +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
Kevin Wan
3b7ca86e4f
chore: add unit tests ( #1615 )
...
* test: add more tests
* test: add more tests
2022-03-04 17:54:09 +08:00
Fyn
0c35f39a7d
fix: fix(gctl): apiparser_parser auto format ( #1607 )
2022-03-04 15:36:20 +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
f15a4f9188
chore: update go-zero to v1.3.1 in goctl ( #1599 )
2022-03-01 20:56:57 +08:00
Kevin Wan
e31128650e
Revert " 🐞 fix(gen): pg gen of insert ( #1591 )" ( #1598 )
...
This reverts commit cc4c4928e0
.
2022-03-01 20:27:59 +08:00
toutou_o
cc4c4928e0
🐞 fix(gen): pg gen of insert ( #1591 )
...
Co-authored-by: kurimi1 <d0n41df@gmail.com>
2022-03-01 19:53:23 +08:00
Fyn
fba6543b23
fix: goctl api dart support form
tag ( #1596 )
2022-03-01 16:17:37 +08:00
Kevin Wan
259a5a13e7
chore: fix data race ( #1593 )
2022-02-28 23:17:51 +08:00
Fyn
cf7c7cb392
build: update goctl dependency ddl-parser to v1.0.3 ( #1586 )
...
* build: update goctl dependency ddl-parser to v1.0.3
* fix: race condition when testing logx
Resolves : #1587
2022-02-28 17:31:59 +08:00
anqiansong
ffd69a2f5e
Fix bug int overflow while build goctl on arch 386 ( #1582 )
...
Co-authored-by: anqiansong <anqiansong@bytedance.com>
2022-02-27 10:51:57 +08:00
Kevin Wan
66f10bb5e6
chore: add goctl command help ( #1578 )
2022-02-26 17:02:04 +08:00
Fyn
db949e40f1
feat: supports importValue
for more path formats ( #1569 )
...
`importValueRegex` now can match more path formats
Resolves : #1568
2022-02-25 11:16:57 +08:00
Kevin Wan
e0454138e0
update goctl to go 1.16 for io/fs usage ( #1571 )
...
* update goctl to go 1.16 for io/fs usage
* 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>
* chore: format code
Co-authored-by: toutou_o <33993460+kurimi1@users.noreply.github.com>
Co-authored-by: kurimi1 <d0n41df@gmail.com>
2022-02-24 13:58:53 +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