Commit Graph

497 Commits (ff6f1090650899565dd011a9dd15320106d34751)

Author SHA1 Message Date
虫子樱桃 76086fc717
fix:typo in readme.md (#2061)
Co-authored-by: 虫子樱桃 <czyt@w.cn>
2 years ago
Kevin Wan 555c4ecd1a
fix: quickstart wrong package when go.mod exists in parent dir (#2048)
* chore: fix typo

* fix: quickstart in dir with go.mod

* fix: runner failed

* chore: refine code

* chore: simplify quickstart mono
2 years ago
Kevin Wan 38cd7b7df0
chore: remove lifecycle preStop because sh not exist in scratch (#2042) 2 years ago
anqiansong 93b3f5030f
chore: Add command desc & color commands (#2013)
* Add link & Color sub-commands

* Color sub-commands for unix-like OS

* Remove useless code

* Remove redundant dependency
2 years ago
anqiansong b44e8f5c75
fix #1977 (#2034) 2 years ago
anqiansong 9b6e4c440c
Add fig (#2008)
Co-authored-by: SH00414ml <sh00414ml@SH00414mldeMacBook-Pro.local>
2 years ago
Kevin Wan 9eea311a4d
feat: support build Dockerfile from current dir (#2021) 2 years ago
anqiansong c27e00b45c
feat: Replace mongo package with monc & mon (#2002)
* Replace mongo package with monc & mon

* Add terminal whitespace

* format code
2 years ago
swliao425 0f5d8c6be3
feat: add 'imagePullPolicy' parameter for 'goctl kube deploy' (#1996) 2 years ago
MarkJoyMa f2caf9237a
fix goctl api clone template fail (#1990) 2 years ago
Kevin Wan 2f0e4e3ebf
chore: update dependencies (#1985) 2 years ago
Kevin Wan 2c6b422f6b
chore: update goctl version to 1.3.8 (#1981) 3 years ago
Kevin Wan 4d34998338
fix: generate bad Dockerfile on given dir (#1980) 3 years ago
anqiansong 8be47b9c99
Fix pg subcommand level error (#1979) 3 years ago
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
3 years ago
Kevin Wan 46078e716d
chore: update version (#1961) 3 years ago
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
3 years ago
Kevin Wan 72ebbb9774
feat: update docker alpine package mirror (#1924)
* feat: update docker alpine package mirror

* chore: format code
3 years ago
anqiansong f1fdd55b38
Support built-in shorthand flags (#1925) 3 years ago
anqiansong 58787746db
fix: Useless delete cache logic in update (#1923)
* Fix bug: useless delete cache logic in update

* Format code
3 years ago
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
3 years ago
anqiansong 5e7b1f6bfe
Fix process blocking problem during check (#1911) 3 years ago
Kevin Wan 7b82eda993
chore: use get for quickstart, plain logs for easy understanding (#1905) 3 years ago
Kevin Wan 5d09cd0e7c
use goproxy properly, remove files (#1903) 3 years ago
Kevin Wan c6e2b4a43a
chore: coding style for quickstart (#1902) 3 years ago
anqiansong 52f060caae
feat: Add goctl quickstart (#1889)
* Add goctl quickstart

* Format code

* Format code
3 years ago
anqiansong f486685e99
Fix code generation (#1897) 3 years ago
过客龙门 3ae874d75d
fix ts tpl (#1879) 3 years ago
givemeafish 14ca39bc86
fix:tools/goctl/rpc/generator/template_test.go file has wrong parameters (#1882) 3 years ago
Kevin Wan 5451d96a81
chore: update some logs (#1875) 3 years ago
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
Kevin Wan 3bbc90ec24
refactor: move json related header vars to internal (#1840)
* refactor: move json related header vars to internal

* refactor: use header.ContentType
3 years ago
Kevin Wan cef83efd4e
fix #1838 (#1839) 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
Kevin Wan 5bcee4cf7c
fix #1806 (#1833)
* fix #1806

* chore: refine error text
3 years ago
anqiansong 16c61c6657
chore: Embed unit test data (#1812)
* Embed unit test data

* Add testdata

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
anqiansong 305587aa81
fix: Fix issue #1810 (#1811)
* Fix #1810

* Remove go embed

* Format code

* Remove useless code

Co-authored-by: anqiansong <anqiansong@bytedance.com>
3 years ago
fang duan bbe1249ecb
update rpc generate sample proto file (#1709)
* update rpc generate sample proto file

* update
3 years ago
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
3 years ago
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
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 4382ec0e0d
show help when running goctl api without any flags (#1678)
close #1676
3 years ago
fang duan db99addc64
show help when running goctl docker without any flags (#1679)
close #1677
3 years ago
fang duan 97bf3856c1
show help when running goctl rpc protoc without any flags (#1683) 3 years ago
fang duan ff6c6558dd
improve goctl rpc new (#1687) 3 years ago
Fyn ee88abce14
fix(goctl): api/new/api.tpl (#1788) 3 years ago
方航 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>
3 years ago