Sakura
Sakura

Reputation: 11

How to use thrift file generation interface class in Scrooge

Like this command

thrift -r --gen py tutorial.thrift

Upvotes: 0

Views: 202

Answers (1)

James
James

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

Related Questions