# chatr
A commandline tool to transform GW2 Template Codes into AW2 Markup.
Example:
> `chatr DQMGKiYaHT4oAQAAkwEAAI4BAAAiAQAAiQEAAAAAAAAAAAAAAAAAAAAAAAA=`
OR
> `chatr "[&DQMGKiYaHT4oAQAAkwEAAI4BAAAiAQAAiQEAAAAAAAAAAAAAAAAAAAAAAAA=]"`
Output:
```
`[&DQMGKiYaHT4oAQAAkwEAAI4BAAAiAQAAiQEAAAAAAAAAAAAAAAAAAAAAAAA=]`
---
```
Suitable for copy-pasting into a build webpage, or using with vim `read!`
# Installation
1. Download [the latest release](https://github.com/berdandy/chatr/releases)
2. Unzip chatr.exe and place it somewhere convenient (in your path, probably)
- Note that chatr is not a signed executable so windows might complain. Read the source and compile it yourself if you're worried.
# Dev Setup (on fresh machine)
The following instructions are only required if you wish to build chatr from source. If you're just downloading the release, this is not required. Chatr just needs to be your PATH or current directory (for windows)
## Windows 10/11 (winget):
- Winget is available pre-installed on Windows 11.
- [Install windows build tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/). Rustup will give more details, but c++ win10 sdk required.
- [Install Rustup](https://www.rust-lang.org/tools/install)
- And then...
```
winget install --id Git.Git
winget install --id GitHub.cli
gh repo clone berdandy/chatr
cd chatr; cargo build
```
_I like winget for a solid pre-installed package manager on Windows 11. See [here for more info on earlier versions](https://docs.microsoft.com/en-us/windows/package-manager/winget/). Or simply install Git & GitHub CLI [using a different method](https://github.com/cli/cli#windows)_
## mac
- [install brew](https://brew.sh/)
- And then...
```
brew install git gh
gh repo clone berdandy/chatr
cd chatr; cargo build
```
## linux
- install git, gh, rust (TODO: specific commands)
- And then...
```
gh repo clone berdandy/chatr
cd chatr; cargo build
```