Skip to content

ChrisLane/leaderboard-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaderboard CLI

Build Status

Leaderboard CLI is a command-line interface for tracking people's scores.

Building

To create a Jar containing the program, run the command for your system:

  • Linux/Mac: ./gradlew assemble
  • Windows: gradlew.bat assemble

The Jar file can be found in ./build/libs/.

Testing

To run the included tests run ./gradlew test or gradlew.bat test

Using the program

  1. Grab the latest release.
  2. Run the program Jar using java -jar {jar-name}.

Alternatively, build and run using ./gradlew run or gradlew.bat run.

Commands

To set a person's score:
score <name> <score>

To the global high score or for a person:
highest-alltime-score [name]

To show the current leaderboard or leaderboard change after a play:
board [play-number]