File: protoc-gen-beefcake

package info (click to toggle)
ruby-beefcake 1.2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 196 kB
  • sloc: ruby: 1,655; makefile: 4
file content (11 lines) | stat: -rwxr-xr-x 251 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env ruby
require 'rubygems'
require 'beefcake/generator'

ns = (ENV["BEEFCAKE_NAMESPACE"] || "").split("::")

req = CodeGeneratorRequest.decode(STDIN.read)
res = Beefcake::Generator.compile(ns, req)

# Send it out!
STDOUT.print(res.encode)