This command-line tool fills in category names into a tree structure and outputs the modified tree.
- PHP 7.2
- PHP's ext-json
- Composer
Simply run composer install
.
There is no further configuration.
Run bin/console match-names
.
Required arguments:
- list file name (in json format)
- tree file name (in json format)
Additional options:
-o
/--output
file name to write the output to (will be overwritten without asking),-
for stdout (default)-l
/--language
the language to extract from list file, default ispl_PL
--skip-on-error
whether to skip when encountering a missing name, default is to fail-s
/--strategy
tree traversal strategy, eitherbreadth
ordepth
for breadth-first search or depth-first search, respectively-p
/--pretty
whether to pretty print the json output, defaults to not prettifying
This can also be accessed with --help
flag.
Simply run composer test
.