ChiefOfGxBxL / WC3MapTranslator

Translate war3map ⇄ json formats for WarCraft III .w3x maps
https://www.npmjs.com/package/wc3maptranslator
MIT License
80 stars 31 forks source link

[WIP] Implement CLI tool #77

Open ChiefOfGxBxL opened 9 months ago

ChiefOfGxBxL commented 9 months ago

Allow users to use the tool via CLI commands instead of programmatically.

TODO:

Examples:

> wc3maptranslator obj-abilities.json

⚔ WC3MapTranslator  SUCCESS
  Input: obj-abilities.json C:\Users\___\Documents\WC3MapTranslator\obj-abilities.json
  Output: war3map.w3a C:\Users\___\Documents\WC3MapTranslator\war3map.w3a (Defaulted to war3map.w3a)
  Method: ObjectsTranslator/jsonToWar
> wc3maptranslator --help

Usage: wc3maptranslator [options] <input-file> [output-file]

Translate between war3map and json formats for WarCraft III .w3x maps

Arguments:
  input-file   The file to be translated
  output-file  The output file to save the translated data to

Options:
  -f, --force  Force overwrite any existing output file (default: false)
  -h, --help   display help for command

Closes #72