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

请问如何指定xxxx.proto.go生成的路径 #10

Open
redwolf2019 opened this issue Nov 17, 2021 · 2 comments
Open

请问如何指定xxxx.proto.go生成的路径 #10

redwolf2019 opened this issue Nov 17, 2021 · 2 comments

Comments

@redwolf2019
Copy link

在powerproto.yml中,若想指定go文件生成的路径,请问要如何操作?

现在的方案

  • 强制指定某个路径,比如/home/admin/proto
options:
    - --go_out=paths=source_relative:/home/admin/proto

希望的方式

  • 能通过读取环境变量的方式指定生成路径,比如$GEN_PATH
options:
    - --go_out=paths=source_relative:$GEN_PATH
  • 能通过powerproto命令指定生成路径,比如--gen_path指定目标路径
powerproto --gen_path=/home/admin/proto
@ideamean
Copy link

+1 这个很有必要

@gaoyangy
Copy link

+1

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

No branches or pull requests

3 participants