0

Like this command

thrift -r --gen py tutorial.thrift
doelleri
  • 19,232
  • 5
  • 61
  • 65
Sakura
  • 11
  • 3

1 Answers1

0

Configure Scrooge in SBT with the following dependency:

libraryDependencies += "com.twitter" %% "scrooge-core" % "4.3.0"

Then run it from command line like below:

$ ./sbt 'scrooge-generator/run-main com.twitter.scrooge.Main <thrift-file1> [<thrift-file2> ...]'

More details here.

James
  • 2,756
  • 17
  • 19