This is an automated email from the ASF dual-hosted git repository.
sergeykamov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nlpcraft.git
The following commit(s) were added to refs/heads/master by this push:
new 1b41cec CLI generated projects templates update.
1b41cec is described below
commit 1b41cecd6c050e062d4ab408a98fde92bcb92294
Author: Sergey Kamov <[email protected]>
AuthorDate: Thu Apr 29 13:32:32 2021 +0300
CLI generated projects templates update.
---
nlpcraft/src/main/resources/cli/templates.zip | Bin 62007 -> 82067 bytes
.../apache/nlpcraft/model/tools/cmdline/NCCli.scala | 7 +++++++
2 files changed, 7 insertions(+)
diff --git a/nlpcraft/src/main/resources/cli/templates.zip
b/nlpcraft/src/main/resources/cli/templates.zip
index ca6f156..b836621 100644
Binary files a/nlpcraft/src/main/resources/cli/templates.zip and
b/nlpcraft/src/main/resources/cli/templates.zip differ
diff --git
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
index a176f1a..1c8849a 100644
---
a/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
+++
b/nlpcraft/src/main/scala/org/apache/nlpcraft/model/tools/cmdline/NCCli.scala
@@ -2056,6 +2056,13 @@ object NCCli extends NCCliBase {
"templateModelId" → baseName
)
+ cp(
+ s"src/main/resources/nlpcraft.conf",
+ None,
+ "com.company.nlp.TemplateModel" → s"$pkgName.$clsName",
+ "templateModelId" → baseName
+ )
+
val resFileName =
if (baseName.contains("_")) baseName else
CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, baseName)