Installation
System Prerequisites
The following things are needed to run this application:
- A Java Runtime Environment (JRE)
- The watermarker library, published in maven local(*)
(*) To publish the watermarker library to your maven local repository (if not already done), execute the following commands from the root directory of the project:
- cd watermarker
- ./gradlew publishToMavenLocal
Building from Source
Use Gradle to build the CLI tool:
Note: You must replace <version> in the following commands (e.g. 0.1.0-SNAPSHOT)
- cd cli(if not already there)
- ./gradlew shadowJar- This will create a standalone jar file: ./build/libs/cli-<version>-all.jar
 
- This will create a standalone jar file: 
- java -jar build/libs/cli-<version>-all.jar --help- This will print all possible commands of the CLI tool.
 
- (Optional) Create alias Innamarkto run the CLI tool:- Fish: alias -s Innamark "java -jar $PWD/build/libs/cli-<version>-all.jar"
- Zsh / Bash:
- Note: You must replace <path/to/cli>and<versionin the following commands
- add the following line to your ~/.zshrcor~/.bashrc:
 alias Innamark='java -jar <path/to/cli>/build/libs/cli-<version>-all.jar'
 
- Note: You must replace 
 
- Fish: 
Usage Example
- List all watermarks contained in a file:
 Innamark list example.watermarked.txt
- Create a new file from the source file:
- Add a watermark to a text file:
 Innamark add "<watermark>" example.txt example.watermarked.txt
- Remove all watermarks contained in a file:
 Innamark remove example.watermarked.txt example.txt
 
- Add a watermark to a text file:
- Modify the source file:
- Add a watermark to a text file:
 Innamark add "<watermark>" example.txt
- Remove all watermarks contained in a file:
 Innamark remove example.watermarked.txt
 
- Add a watermark to a text file:
Development Build
Use Gradle to recompile and run the CLI tool:
- cd cli(if not already there)
- ./gradlew run --args="--help"- This will print all possible commands of the CLI tool. To use it, the --argsparameter has to be changed.
 
- This will print all possible commands of the CLI tool. To use it, the