Currently includes the commands:
- Diff
- Task
- Greet
Detailed usage examples are provided below(all of which assume there is an alias set up).
Finds the line-by-line diff between 2 given files and prints it.
> adclu diff "filepath1" "filepath2"
Where filepath1 and filepath2 are the file paths to each of your files, such as:
> adclu diff ./file1.txt ./resources/file2.txt
Implemented with O(nm) time complexity using the Longest common Subsequence concept.
Maintains a Task List from which tasks can be displayed, added, or deleted.
> adclu task show
> adclu task delete "number"
where "number" is the task number displayed using task show, used as
> adclu task delete 3
> adclu task delete "task name"
Used as
> adclu task add fix my sleep cycle
where fix my sleep cycle will be added as a task.
A hellow world program that prints hello! or hello args! if args were supplied.
> adclu greet Guests
hello Guests!
Any of the commands and the arguments which are not values can be abbreviated to the first letter of the command. Any of the following uses is completely valid:
> adclu task s
> adclu t s
> adclu g
> adclu t a new task, eat good food
> adclu t d 3
> adclu d ./file1.txt ./file3.txt
The straightforward way to run the Jar is as follows
java -jar home/code/adclu-jar-with-dependencies.jar args
where "home/code/adclu-jar-with-dependencies" is the address of the adclu-jar-with-dependencies.jar and args is a part of one of the commands specified above.
Running the jar file can be made easier using an Alias set to
alias adclu="java -jar home/code/adclu-jar-with-dependencies"
on Linux. Or for Powershell users,
function adclufunc {
java -jar C:\Users\adity\Code\Adclu\adclu\target\adclu-jar-with-dependencies.jar $args
}
New-Alias adclu adclufunc
in the profile.ps1 file.
Packaging with a executable may be done in the future.