Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:new and add karge warehouse #1953

Merged
merged 8 commits into from
Apr 27, 2022
Merged

feat:new and add karge warehouse #1953

merged 8 commits into from
Apr 27, 2022

Conversation

daemon365
Copy link
Member

@daemon365 daemon365 commented Apr 26, 2022

命令

kratos new 
# 参数
-m / --mod bool类型

examples

kratos new hello
cd hello
tree

.
├── Dockerfile
├── LICENSE
├── Makefile
├── README.md
├── api
│   └── helloworld
│       └── v1
│           ├── error_reason.pb.go
│           ├── error_reason.proto
│           ├── greeter.pb.go
│           ├── greeter.proto
│           ├── greeter_grpc.pb.go
│           └── greeter_http.pb.go
├── cmd
│   └── hello
│       ├── main.go
│       ├── wire.go
│       └── wire_gen.go
├── configs
│   └── config.yaml
├── go.mod
├── go.sum
├── internal
│   ├── biz
│   │   ├── README.md
│   │   ├── biz.go
│   │   └── greeter.go
│   ├── conf
│   │   ├── conf.pb.go
│   │   └── conf.proto
│   ├── data
│   │   ├── README.md
│   │   ├── data.go
│   │   └── greeter.go
│   ├── server
│   │   ├── grpc.go
│   │   ├── http.go
│   │   └── server.go
│   └── service
│       ├── README.md
│       ├── greeter.go
│       └── service.go
├── openapi.yaml
└── third_party
    ├── README.md
    ├── errors
    │   └── errors.proto
    ├── google
    │   ├── api
    │   │   ├── annotations.proto
    │   │   ├── client.proto
    │   │   ├── field_behavior.proto
    │   │   ├── http.proto
    │   │   └── httpbody.proto
    │   └── protobuf
    │       └── descriptor.proto
    └── validate
        ├── README.md
        └── validate.proto
kratos new app/order/service --nomod
kratos new app/user --nomod
.
├── Dockerfile
├── LICENSE
├── Makefile
├── README.md
├── api
│   └── helloworld
│       └── v1
│           ├── error_reason.pb.go
│           ├── error_reason.proto
│           ├── greeter.pb.go
│           ├── greeter.proto
│           ├── greeter_grpc.pb.go
│           └── greeter_http.pb.go
├── app
│   ├── order
│   │   └── service
│   │       ├── Dockerfile
│   │       ├── Makefile
│   │       ├── cmd
│   │       │   └── service
│   │       │       ├── main.go
│   │       │       ├── wire.go
│   │       │       └── wire_gen.go
│   │       ├── configs
│   │       │   └── config.yaml
│   │       ├── internal
│   │       │   ├── biz
│   │       │   │   ├── biz.go
│   │       │   │   └── greeter.go
│   │       │   ├── conf
│   │       │   │   ├── conf.pb.go
│   │       │   │   └── conf.proto
│   │       │   ├── data
│   │       │   │   ├── data.go
│   │       │   │   └── greeter.go
│   │       │   ├── server
│   │       │   │   ├── grpc.go
│   │       │   │   ├── http.go
│   │       │   │   └── server.go
│   │       │   └── service
│   │       │       ├── greeter.go
│   │       │       └── service.go
│   │       └── openapi.yaml
│   └── user
│       ├── Dockerfile
│       ├── Makefile
│       ├── cmd
│       │   └── user
│       │       ├── main.go
│       │       ├── wire.go
│       │       └── wire_gen.go
│       ├── configs
│       │   └── config.yaml
│       ├── internal
│       │   ├── biz
│       │   │   ├── biz.go
│       │   │   └── greeter.go
│       │   ├── conf
│       │   │   ├── conf.pb.go
│       │   │   └── conf.proto
│       │   ├── data
│       │   │   ├── data.go
│       │   │   └── greeter.go
│       │   ├── server
│       │   │   ├── grpc.go
│       │   │   ├── http.go
│       │   │   └── server.go
│       │   └── service
│       │       ├── greeter.go
│       │       └── service.go
│       └── openapi.yaml
├── cmd
│   └── hello
│       ├── main.go
│       ├── wire.go
│       └── wire_gen.go
├── configs
│   └── config.yaml
├── go.mod
├── go.sum
├── internal
│   ├── biz
│   │   ├── README.md
│   │   ├── biz.go
│   │   └── greeter.go
│   ├── conf
│   │   ├── conf.pb.go
│   │   └── conf.proto
│   ├── data
│   │   ├── README.md
│   │   ├── data.go
│   │   └── greeter.go
│   ├── server
│   │   ├── grpc.go
│   │   ├── http.go
│   │   └── server.go
│   └── service
│       ├── README.md
│       ├── greeter.go
│       └── service.go
├── openapi.yaml
└── third_party
    ├── README.md
    ├── errors
    │   └── errors.proto
    ├── google
    │   ├── api
    │   │   ├── annotations.proto
    │   │   ├── client.proto
    │   │   ├── field_behavior.proto
    │   │   ├── http.proto
    │   │   └── httpbody.proto
    │   └── protobuf
    │       └── descriptor.proto
    └── validate
        ├── README.md
        └── validate.prot

@codecov-commenter
Copy link

codecov-commenter commented Apr 26, 2022

Codecov Report

Merging #1953 (be4e0b6) into main (d4e1942) will increase coverage by 0.11%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #1953      +/-   ##
==========================================
+ Coverage   80.66%   80.77%   +0.11%     
==========================================
  Files          81       81              
  Lines        3615     3615              
==========================================
+ Hits         2916     2920       +4     
+ Misses        492      490       -2     
+ Partials      207      205       -2     
Impacted Files Coverage Δ
config/file/file.go 66.66% <0.00%> (+4.76%) ⬆️
config/file/watcher.go 65.62% <0.00%> (+6.25%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d4e1942...be4e0b6. Read the comment docs.

@tonybase tonybase merged commit 4e73384 into main Apr 27, 2022
@tonybase tonybase deleted the feat/kratos_tool_repo branch April 27, 2022 12:12
tonybase pushed a commit that referenced this pull request May 31, 2022
* feat:new and add karge warehouse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants