Git-like CLI in scala
To use sgit
please make sure you have sbt
installed. If not, see here
You can find the binary file in the Github release
You can also execute the following command to build the binary file. You then have to add target/scala-2.13
to your PATH.
sbt assembly
You're now able to use sgit
- help
- init
- status
- add <file>
- commit [-m <message>] [-a <author name> ]
- diff
- log
- log -p
- log --stat
- branch [<name>]
- branch -av
- tag [<name>]
- checkout [<branch tag or commit>]
- merge 🔨 [<branch>]
- rebase
- rebase i
NB: Merge algorithm is implemented but is not linked to Parser. Merge command will show an example on three given contents (I decided to focus on refactoring the architecture instead)
You can run tests with the following command
sbt test
You can also see test with a coverage report with the following command (using scoverage)
sbt coverage test coverageReport