Sha256: e2776cde4a8df0417140c8ddddc3fcbe22c8853ecf9f491737e9a0e28e2d7cc0

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 Bytes

Contents

require 'yrpc'
help = <<HELP
yrpc-cli: Atyun grpc pb generator
  proto入口文件 和ruby输出文件 路径
  $ yrpc-cli input_path  outputpath
HELP
input = ARGV[0]
output = ARGV[1]
if %w{-h --help}.any? { |c| ARGV.include? c }
  puts help
elsif %w{-g --generate}.any? { |c| ARGV.include? c }
  #gernate path
  system("mkdir app/controllers")
else
  system("grpc_tools_ruby_protoc -I #{input} --ruby_out=#{output} --grpc_out=#{output} #{input}/*")
end

#

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ampedxx-yrpc-0.1.6 bin/yrpc-cli
ampedxx-yrpc-0.1.4 bin/yrpc-cli