Run development tools from the se.yarin.morphy.tools package using Maven exec:java.
Run development tools from the se.yarin.morphy.tools package.
/morphy-tools <tool-name> [arguments...]
tool-name: Either a file path like morphy-tools/src/main/java/se/yarin/morphy/tools/TestPgnRoundTrip.java or just the class name like TestPgnRoundTriparguments: Any additional arguments to pass to the toolTestPgnRoundTrip - Test PGN round-tripping on a databaseExploreCbmFile - Explore CBM file contentsFileSearch - Search filesQueryTest - Test database queriesRipDbHeaders - Extract database headersGenerateTestDatabaseWhen this skill is invoked:
Parse the tool name from the first argument:
.java, extract the class name from it (e.g., TestPgnRoundTrip.java -> TestPgnRoundTrip)Run the tool using Maven exec:java from the project root:
mvn -pl morphy-tools exec:java -Dexec.mainClass="se.yarin.morphy.tools.<ClassName>" -Dexec.args="<remaining-arguments>"
Important: Make sure the binary isn't outdated! Re-build if necessary.
If there are no additional arguments, omit the -Dexec.args part.
Show the output to the user.
/morphy-tools TestPgnRoundTrip /path/to/database.cbh
/morphy-tools TestPgnRoundTrip /path/to/database.cbh 42