-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable custom code generator function #68
Conversation
…te parames gen function instead
Codecov Report
@@ Coverage Diff @@
## master #68 +/- ##
==========================================
+ Coverage 91.45% 91.69% +0.24%
==========================================
Files 36 37 +1
Lines 1731 1770 +39
==========================================
+ Hits 1583 1623 +40
+ Misses 148 147 -1
Continue to review full report at Codecov.
|
実はtemplateとかもCodeGenArgsに含めたほうがよかったりするのかなあ。(出力をdictからstrにする) |
出力をstrにして困ることはないしstrにすることにした |
ほとんどリファクタ。
ユーザーは、型が
(CodeGenArgs) => str
であるmain
関数を定義したpythonファイルを実装すればよい。指定方法としては、以下のような感じ
というふうにconfigで指定できる。
CodeGenArgsの中身:
実装例: