Reputation: 11
Like this command
thrift -r --gen py tutorial.thrift
Upvotes: 0
Views: 202
Reputation: 2764
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.
Upvotes: 0